antigravity-claude-proxy 1.0.5 → 1.0.7
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 +1 -0
- package/package.json +1 -1
- package/src/account-manager.js +6 -0
package/README.md
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
[](https://www.npmjs.com/package/antigravity-claude-proxy)
|
|
4
4
|
[](https://www.npmjs.com/package/antigravity-claude-proxy)
|
|
5
5
|
[](https://opensource.org/licenses/MIT)
|
|
6
|
+
[](https://buymeacoffee.com/badrinarayanans)
|
|
6
7
|
|
|
7
8
|
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**.
|
|
8
9
|
|
package/package.json
CHANGED
package/src/account-manager.js
CHANGED
|
@@ -64,6 +64,12 @@ export class AccountManager {
|
|
|
64
64
|
}
|
|
65
65
|
|
|
66
66
|
console.log(`[AccountManager] Loaded ${this.#accounts.length} account(s) from config`);
|
|
67
|
+
|
|
68
|
+
// If config exists but has no accounts, fall back to Antigravity database
|
|
69
|
+
if (this.#accounts.length === 0) {
|
|
70
|
+
console.log('[AccountManager] No accounts in config. Falling back to Antigravity database');
|
|
71
|
+
await this.#loadDefaultAccount();
|
|
72
|
+
}
|
|
67
73
|
} catch (error) {
|
|
68
74
|
if (error.code === 'ENOENT') {
|
|
69
75
|
// No config file - use single account from Antigravity database
|