Agy Tools Rust — Development skill for Claude Code
CLI 版本的 Antigravity API 反代工具,将 Google Cloud Code (Antigravity) 反代为 OpenAI/Claude/Gemini 兼容 API.
How to install Agy Tools Rust
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open ChrAlpha/agy-tools-rust and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Agy Tools Rust does
CLI 版本的 Antigravity API 反代工具,将 Google Cloud Code (Antigravity) 反代为 OpenAI/Claude/Gemini 兼容 API。
Alternatives in Development
- OpenAI Codex CLI — (Rust implementation) 67.8k ★
- Agy2api — 将 Antigravity 转换为 OpenAI 、GEMINI 和 Claude API 接口 5.3k ★
- Claude SEO — Multi-Platform Agent Instructions — For Cursor, Cursor Cloud Agents, Google Antigravity, and Gemini CLI 5k ★
README
agy-tools
CLI 版本的 Antigravity API 反代工具,将 Google Cloud Code (Antigravity) 反代为 OpenAI/Claude/Gemini 兼容 API。
功能特性
- 🔄 多协议支持: OpenAI、Claude (Anthropic)、Gemini 原生协议
- 👥 多账号管理: 支持多个 Google 账号轮询调度
- 🎯 智能调度: 粘性会话、限流避让、订阅等级优先
- 🔐 API Key 认证: 可选的访问控制
- 📊 请求监控: 可选的请求日志记录
安装
从源码编译
# 克隆仓库
git clone https://github.com/chralpha/agy-tools.git
cd agy-tools
# 编译 (需要 Rust 1.70+)
cargo build --release
# 安装到系统
cargo install --path .
预编译二进制
从 [Releases](https://github.com/chralpha/agy-tools/releases) 下载对应平台的二进制文件。
快速开始
1. 添加账号
# 通过 OAuth 登录添加账号
agy-tools accounts add
# 或从 Antigravity 数据库导入
agy-tools accounts import
2. 启动服务
# 启动反代服务 (前台运行)
agy-tools start --foreground
# 或指定端口
agy-tools start -p 8045 --foreground
3. 使用 API
# 设置环境变量
export ANTHROPIC_API_KEY=<显示的 API Key>
export ANTHROPIC_BASE_URL=http://127.0.0.1:8045
# 使用 Claude Code
claude
# 或使用 curl 测试
curl http://127.0.0.1:8045/v1/messages \
-H "Content-Type: application/json" \
-H "x-api-key: $ANTHROPIC_API_KEY" \
-H "anthropic-version: 2023-06-01" \
-d '{
"model": "claude-sonnet-4-20250514",
"max_tokens": 1024,
"messages": [{"role": "user", "content": "Hello!"}]
}'
命令参考
服务管理
# 启动服务
agy-tools start [OPTIONS]
-p, --port 监听端口 [默认: 8045]
-H, --host 监听地址 [默认: 127.0.0.1]
-k, --api-key API 密钥 [自动生成]
-c, --config 配置文件路径
-f, --foreground 前台运行
--enable-logging 启用请求日志
# 停止服务
agy-tools stop
# 查看状态
agy-tools status
账号管理
# 列出账号
agy-tools accounts list
# 添加账号 (OAuth)
agy-tools accounts add
# 删除账号
agy-tools accounts remove
# 刷新配额
agy-tools accounts refresh
# 从 Antigravity 导入
agy-tools accounts import [--db-path ]
配置管理
# 显示配置
agy-tools config show
# 设置配置项
agy-tools config set proxy.port 8080
agy-tools config set proxy.allow_lan_access true
# 编辑配置文件
agy-tools co
Related Skills
Antigravity Reverseproxy API
A proxy server that exposes both Anthropic-compatible and OpenAI-compatible APIs backed by Antigravity's Cloud
Antigravity Cursor Proxy
Use Google's Gemini 3 & Claude 4.5 models in Cursor IDE. An OpenAI-compatible proxy with fully Agentic support
Agent Configs
Multi-agent instruction files for Claude Code, Gemini CLI, OpenAI Codex, and Google Antigravity IDE
Cloud Run Debug
Diagnose a failing Cloud Run service — Antigravity (agy/Gemini) digests the error logs cheaply, Claude infers
Antiglaude
Production compatibility gateway bridge & observability platform connecting Claude Code CLI with Google Antigr
Agy Proxy
⚡ High-performance multi-provider proxy for Antigravity, Gemini, ChatGPT Web & DeepSeek. Exposes OpenAI & Clau
Related Agents
Use this agent for web research, finding current information, or questions about Google products and services.
CLI Subagents Antigravity
Runs a task in Google Antigravity (agy, Gemini models) on the user's Google account (CLI Subagents; extra Goog
Antigravity Rescue
Proactively delegate bounded coding work to Google Antigravity CLI (agy) in headless print mode — frontier rea