AGCP

Extremely Lightweight Antigravity-Claude-Proxy

A blazing-fast Rust proxy that translates Anthropic's Claude API to Google's Cloud Code API. Use Claude and Gemini models through a single Anthropic-compatible endpoint.

Works with

and many more...

Why would I need this?

The short version

Google offers AI models like Claude and Gemini through its Cloud Code platform, available on all Google account tiers — free, Pro, and Ultra — with different quota limits. But these models are locked behind Google's own API format, so you can't use them with your favorite coding tools directly.

AGCP bridges that gap. It translates the Anthropic API format (used by Claude Code, OpenCode, Crush, Cursor, Cline, and others) into Google's Cloud Code API format. Point your tool at AGCP, and it handles the rest.

In other words

Your AI Tool AGCP Google Cloud Code Claude & Gemini

No API keys needed. No billing setup. Just authenticate with your Google account and start coding.

Features

Everything you need to proxy Claude and Gemini models

API Compatible

Works with Claude Code, OpenCode, Crush, Cursor, Cline, and any Anthropic API client. OpenAI-compatible endpoint included.

Multiple Models

Access Claude Opus, Sonnet, and Gemini Flash, Pro through a single endpoint. Short aliases like opus, flash, pro.

Multi-Account

Rotate between multiple Google accounts with smart load balancing. Sticky, round-robin, or hybrid strategies.

Response Caching

LRU cache for non-streaming responses. Configurable TTL, bypass with headers, reduces quota usage.

Interactive TUI

Terminal UI with real-time charts, token usage tracking, log viewer, config editor, and quota donut charts. Run agcp tui.

Background Daemon

Runs quietly in the background. Single ~3MB binary, minimal dependencies, written in Rust with async I/O.

Client Identity Camouflage

Spoofs the full Electron client fingerprint — Electron-style User-Agent, X-Client-Name, X-Machine-Id, X-VSCode-SessionId — indistinguishable from the official desktop app.

Interactive TUI

Monitor, configure, and manage everything from your terminal

$ agcp tui

Overview

Real-time request rate chart, response times, active accounts, and model usage breakdown.

Tab switch views q quit
AGCP Overview — real-time request monitoring

Quota

Per-model quota usage with donut charts and reset timers. Separate views for Claude and Gemini.

scroll mouse wheel ? help
AGCP Quota — per-model usage with donut charts

About

Version info, animated rainbow logo, and clickable GitHub link.

AGCP About page

Overview

Live stats

Logs

Syntax-highlighted

Accounts

Search & sort

Config

Edit & restart

Mappings

Model routing

Quota

Donut charts

Usage

Token charts

About

Version info

Installation

Choose your preferred method

terminal

brew tap skyline69/agcp

brew install agcp

macOS and Linux

terminal

# Add the GPG key and repository

curl -fsSL https://dasguney.com/apt/public.key | sudo gpg --dearmor -o /usr/share/keyrings/agcp.gpg

echo "deb [signed-by=/usr/share/keyrings/agcp.gpg] https://dasguney.com/apt stable main" | sudo tee /etc/apt/sources.list.d/agcp.list

# Install

sudo apt update && sudo apt install agcp

Debian, Ubuntu, and derivatives

terminal

# Add the repository

sudo tee /etc/yum.repos.d/agcp.repo << 'EOF'

[agcp]

name=AGCP

baseurl=https://dasguney.com/rpm/packages

enabled=1

gpgcheck=1

gpgkey=https://dasguney.com/rpm/public.key

EOF

# Install

sudo dnf install agcp

Fedora, RHEL, CentOS, and derivatives

terminal

# With an AUR helper

yay -S agcp-bin

# Or manually

git clone https://aur.archlinux.org/agcp-bin.git

cd agcp-bin && makepkg -si

Arch Linux and derivatives

terminal

# Run directly

nix run github:skyline69/agcp

# Or install into profile

nix profile install github:skyline69/agcp

NixOS and any system with Nix

terminal

cargo install agcp

Any platform with Rust installed

terminal

git clone https://github.com/skyline69/agcp

cd agcp && cargo build --release

cp target/release/agcp ~/.local/bin/

Build from source with Cargo

Then get started

setup

# Authenticate with Google

agcp login

# Start the proxy

agcp

# Configure your AI tool

agcp setup

# Supports: Claude Code, OpenCode, Crush, Cursor, Cline, Codex

Supported Models

Claude and Gemini through one endpoint

Claude

  • claude-opus-4-6-thinkingopus
  • claude-sonnet-4-6sonnet
  • claude-sonnet-4-6sonnet-thinking

Gemini

  • gemini-3-flashflash
  • gemini-3-pro-highpro
  • gemini-3-pro-low

Other

  • gpt-oss-120b-mediumgpt-oss