antigravity-claude-proxy 1.0.2 → 1.0.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.
- package/README.md +49 -13
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
# Antigravity Claude
|
|
1
|
+
# Antigravity Claude Server
|
|
2
|
+
|
|
3
|
+
[](https://www.npmjs.com/package/antigravity-claude-proxy)
|
|
4
|
+
[](https://www.npmjs.com/package/antigravity-claude-proxy)
|
|
5
|
+
[](https://opensource.org/licenses/MIT)
|
|
2
6
|
|
|
3
7
|
A proxy server that exposes an **Anthropic-compatible API** backed by **Antigravity's Cloud Code**, letting you use Claude models like sonnet and opus with **Claude Code CLI**.
|
|
4
8
|
|
|
@@ -25,15 +29,33 @@ A proxy server that exposes an **Anthropic-compatible API** backed by **Antigrav
|
|
|
25
29
|
|
|
26
30
|
---
|
|
27
31
|
|
|
28
|
-
##
|
|
32
|
+
## Installation
|
|
29
33
|
|
|
30
|
-
### 1
|
|
34
|
+
### Option 1: npm (Recommended)
|
|
31
35
|
|
|
32
36
|
```bash
|
|
37
|
+
# Run directly with npx (no install needed)
|
|
38
|
+
npx antigravity-claude-proxy start
|
|
39
|
+
|
|
40
|
+
# Or install globally
|
|
41
|
+
npm install -g antigravity-claude-proxy
|
|
42
|
+
antigravity-claude-proxy start
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
### Option 2: Clone Repository
|
|
46
|
+
|
|
47
|
+
```bash
|
|
48
|
+
git clone https://github.com/badri-s2001/antigravity_claude_server.git
|
|
49
|
+
cd antigravity_claude_server
|
|
33
50
|
npm install
|
|
51
|
+
npm start
|
|
34
52
|
```
|
|
35
53
|
|
|
36
|
-
|
|
54
|
+
---
|
|
55
|
+
|
|
56
|
+
## Quick Start
|
|
57
|
+
|
|
58
|
+
### 1. Add Account(s)
|
|
37
59
|
|
|
38
60
|
You have two options:
|
|
39
61
|
|
|
@@ -46,6 +68,13 @@ If you have Antigravity installed and logged in, the proxy will automatically ex
|
|
|
46
68
|
Add one or more Google accounts for load balancing:
|
|
47
69
|
|
|
48
70
|
```bash
|
|
71
|
+
# If installed via npm
|
|
72
|
+
antigravity-claude-proxy accounts add
|
|
73
|
+
|
|
74
|
+
# If using npx
|
|
75
|
+
npx antigravity-claude-proxy accounts add
|
|
76
|
+
|
|
77
|
+
# If cloned locally
|
|
49
78
|
npm run accounts:add
|
|
50
79
|
```
|
|
51
80
|
|
|
@@ -55,24 +84,31 @@ Manage accounts:
|
|
|
55
84
|
|
|
56
85
|
```bash
|
|
57
86
|
# List all accounts
|
|
58
|
-
|
|
87
|
+
antigravity-claude-proxy accounts list
|
|
59
88
|
|
|
60
89
|
# Verify accounts are working
|
|
61
|
-
|
|
90
|
+
antigravity-claude-proxy accounts verify
|
|
62
91
|
|
|
63
92
|
# Interactive account management
|
|
64
|
-
|
|
93
|
+
antigravity-claude-proxy accounts
|
|
65
94
|
```
|
|
66
95
|
|
|
67
|
-
###
|
|
96
|
+
### 2. Start the Proxy Server
|
|
68
97
|
|
|
69
98
|
```bash
|
|
99
|
+
# If installed via npm
|
|
100
|
+
antigravity-claude-proxy start
|
|
101
|
+
|
|
102
|
+
# If using npx
|
|
103
|
+
npx antigravity-claude-proxy start
|
|
104
|
+
|
|
105
|
+
# If cloned locally
|
|
70
106
|
npm start
|
|
71
107
|
```
|
|
72
108
|
|
|
73
109
|
The server runs on `http://localhost:8080` by default.
|
|
74
110
|
|
|
75
|
-
###
|
|
111
|
+
### 3. Verify It's Working
|
|
76
112
|
|
|
77
113
|
```bash
|
|
78
114
|
# Health check
|
|
@@ -114,7 +150,7 @@ Add this configuration:
|
|
|
114
150
|
|
|
115
151
|
```bash
|
|
116
152
|
# Make sure the proxy is running first
|
|
117
|
-
|
|
153
|
+
antigravity-claude-proxy start
|
|
118
154
|
|
|
119
155
|
# In another terminal, run Claude Code
|
|
120
156
|
claude
|
|
@@ -199,7 +235,7 @@ If using single-account mode with Antigravity:
|
|
|
199
235
|
1. Make sure Antigravity app is installed and running
|
|
200
236
|
2. Ensure you're logged in to Antigravity
|
|
201
237
|
|
|
202
|
-
Or add accounts via OAuth instead: `
|
|
238
|
+
Or add accounts via OAuth instead: `antigravity-claude-proxy accounts add`
|
|
203
239
|
|
|
204
240
|
### 401 Authentication Errors
|
|
205
241
|
|
|
@@ -210,7 +246,7 @@ curl -X POST http://localhost:8080/refresh-token
|
|
|
210
246
|
|
|
211
247
|
Or re-authenticate the account:
|
|
212
248
|
```bash
|
|
213
|
-
|
|
249
|
+
antigravity-claude-proxy accounts
|
|
214
250
|
```
|
|
215
251
|
|
|
216
252
|
### Rate Limiting (429)
|
|
@@ -221,7 +257,7 @@ With multiple accounts, the proxy automatically switches to the next available a
|
|
|
221
257
|
|
|
222
258
|
Re-authenticate the account:
|
|
223
259
|
```bash
|
|
224
|
-
|
|
260
|
+
antigravity-claude-proxy accounts
|
|
225
261
|
# Choose "Re-authenticate" for the invalid account
|
|
226
262
|
```
|
|
227
263
|
|