NeoSwitch lets Claude Code run on Gemini 4 Neon. Your commands, permissions, tools, skills, MCP servers and hooks stay exactly as they are; a small local proxy translates requests for the model behind them.
> /plugin marketplace add yldm-ai/neon-switch > /plugin install neoswitch@neoswitch > /neoswitch:login
Claude Code still owns the session, permissions, tool execution and CLAUDE.md. NeoSwitch sits on loopback and speaks the Anthropic Messages API on one side and Gemini on the other.
Same CLI, slash commands, skills, MCP servers, hooks and /resume.
Anthropic-compatible endpoint. Random access token, no prompt or credential logging, no remote relay.
Through the official genai SDK, or the unmodified local agy acp process.
A model switch for people who already like how Claude Code works.
You still run Claude Code. Nothing to relearn, nothing to migrate.
Route one project to Gemini and leave the rest on Anthropic.
Loopback only. OAuth tokens stay inside agy; NeoSwitch never reads them.
What works, what is partial and what is missing is listed below. No silent fallback.
Requires Claude Code. Go is optional: with it the plugin builds its binary from source on first use, without it the plugin downloads the matching release binary and verifies its checksum. For Antigravity OAuth you also need the official agy CLI on your PATH.
Inside Claude Code:
> /plugin marketplace add yldm-ai/neon-switch > /plugin install neoswitch@neoswitch
In the project that should use Neon. To use a Gemini API key instead, set it under /plugin → neoswitch → Gemini API key and run /neoswitch:on.
> /neoswitch:login
Reopen Claude Code in that project. The session header may still show a Claude model label; the status command shows the real upstream.
> /neoswitch:status NeoSwitch ... -> gemini-4-neon
Run neoswitch doctor on any path. It looks the model up, runs a one-line generation and names the failing step if something is wrong.
| Path | How it signs in | Notes |
|---|---|---|
| Antigravity OAuth | Google account through the official agy CLI | The plugin's default flow. Read the warning below first. |
| Gemini Developer API | GEMINI_API_KEY | Access to Gemini 4 Neon depends on your key. |
| Vertex AI | Google Cloud Application Default Credentials | Access depends on your project and region. |
How well Claude Code's features work depends on how well the model follows its tool protocol. This has been exercised in everyday coding use, not by an automated end-to-end suite.
| Capability | Gemini API / Vertex AI | Antigravity OAuth (ACP) |
|---|---|---|
| Streaming text | Supported | Supported |
| Tool calls, incl. parallel | Native Gemini function calling | Partial: tool-call JSON arrives whole, not streamed |
Multi-turn tools, /resume | Supported | Supported |
| Images | Supported | When agy offers image input |
| PDFs | Supported | Not supported |
/effort | Not applied yet | Mapped to agy's thought level |
Token usage, count_tokens | Reported; estimated on the Developer API | Reported, incl. ~14k tokens of agy instructions |
Not supported on either path: server tools such as web search and code execution, URL image and document sources, and Claude thinking blocks. Full contract in docs/protocol-contract.md.
Routing changes apply to new sessions; the current session keeps its connection.
/neoswitch:loginSign in with Antigravity OAuth and enable this project's route/neoswitch:onEnable routing for this project/neoswitch:statusShow the route and daemon state/neoswitch:offDisable routing for this projectPrefer a standalone binary? Builds for macOS, Linux and Windows are on the Releases page, and neoswitch serve works with any Anthropic-compatible client.