initial commit

This commit is contained in:
Badri Narayanan S
2025-12-18 00:06:00 +05:30
commit 52d72b7bff
799 changed files with 141087 additions and 0 deletions

36
src/index.js Normal file
View File

@@ -0,0 +1,36 @@
/**
* Antigravity Claude Proxy
* Entry point - starts the proxy server
*/
import app from './server.js';
import { DEFAULT_PORT } from './constants.js';
const PORT = process.env.PORT || DEFAULT_PORT;
app.listen(PORT, () => {
console.log(`
╔══════════════════════════════════════════════════════════════╗
║ Antigravity Claude Proxy Server ║
╠══════════════════════════════════════════════════════════════╣
║ ║
║ Server running at: http://localhost:${PORT}
║ ║
║ Endpoints: ║
║ POST /v1/messages - Anthropic Messages API ║
║ GET /v1/models - List available models ║
║ GET /health - Health check ║
║ POST /refresh-token - Force token refresh ║
║ ║
║ Usage with Claude Code: ║
║ export ANTHROPIC_BASE_URL=http://localhost:${PORT}
║ export ANTHROPIC_API_KEY=dummy ║
║ claude ║
║ ║
║ Prerequisites: ║
║ - Antigravity must be running ║
║ - Have a chat panel open in Antigravity ║
║ ║
╚══════════════════════════════════════════════════════════════╝
`);
});