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