antigravity-claude-proxy 1.1.3 → 1.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +31 -0
  2. package/package.json +1 -1
  3. package/src/server.js +13 -0
package/README.md CHANGED
@@ -166,6 +166,37 @@ Or to use Gemini models:
166
166
  }
167
167
  ```
168
168
 
169
+ ### Load Environment Variables
170
+
171
+ Add the proxy settings to your shell profile:
172
+
173
+ **macOS / Linux:**
174
+
175
+ ```bash
176
+ echo 'export ANTHROPIC_BASE_URL="http://localhost:8080"' >> ~/.zshrc
177
+ echo 'export ANTHROPIC_API_KEY="test"' >> ~/.zshrc
178
+ source ~/.zshrc
179
+ ```
180
+
181
+ > For Bash users, replace `~/.zshrc` with `~/.bashrc`
182
+
183
+ **Windows (PowerShell):**
184
+
185
+ ```powershell
186
+ Add-Content $PROFILE "`n`$env:ANTHROPIC_BASE_URL = 'http://localhost:8080'"
187
+ Add-Content $PROFILE "`$env:ANTHROPIC_API_KEY = 'test'"
188
+ . $PROFILE
189
+ ```
190
+
191
+ **Windows (Command Prompt):**
192
+
193
+ ```cmd
194
+ setx ANTHROPIC_BASE_URL "http://localhost:8080"
195
+ setx ANTHROPIC_API_KEY "test"
196
+ ```
197
+
198
+ Restart your terminal for changes to take effect.
199
+
169
200
  ### Run Claude Code
170
201
 
171
202
  ```bash
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "antigravity-claude-proxy",
3
- "version": "1.1.3",
3
+ "version": "1.1.4",
4
4
  "description": "Proxy server to use Antigravity's Claude models with Claude Code CLI",
5
5
  "main": "src/index.js",
6
6
  "type": "module",
package/src/server.js CHANGED
@@ -380,6 +380,19 @@ app.get('/v1/models', async (req, res) => {
380
380
  }
381
381
  });
382
382
 
383
+ /**
384
+ * Count tokens endpoint (not supported)
385
+ */
386
+ app.post('/v1/messages/count_tokens', (req, res) => {
387
+ res.status(501).json({
388
+ type: 'error',
389
+ error: {
390
+ type: 'not_implemented',
391
+ message: 'Token counting is not implemented. Use /v1/messages with max_tokens or configure your client to skip token counting.'
392
+ }
393
+ });
394
+ });
395
+
383
396
  /**
384
397
  * Main messages endpoint - Anthropic Messages API compatible
385
398
  */