RelayAI v2.0
Claude thinks. Gemini 3 Flash speaks. Save up to 80% on AI API costs.
How it works
- You type a query in terminal
- Claude generates a short precise plan
- Gemini 3 Flash CLI implements it fully
- You get production ready code for free
User query
↓
Claude API → short numbered plan (300-400 tokens)
↓
Gemini CLI streams full implementation to terminal
↓
Files written to disk
Requirements
- Python 3.9+
- Node.js + npm (for Gemini CLI)
- Claude API key
Install
pip install relayai
npm install -g @google/gemini-cli
Setup
relayai login
You will be prompted for your Claude API key. Then the setup checks that Gemini CLI is installed and authenticated.
To authenticate Gemini CLI:
gemini
Log in with your Google account when prompted. Gemini CLI is free (1000 requests/day).
Use
# Single query
relayai "write a FastAPI server with /health endpoint"
# Attach a file
relayai "fix the bug" --file main.py
# Auto-detect file as last argument
relayai "review this code" main.py
# Pipe content
cat main.py | relayai "explain this"
# Interactive mode
relayai --chat
# Check configuration
relayai status
# Clear credentials
relayai logout
Cost comparison
| Direct Claude | RelayAI | |
|---|---|---|
| Planning | Claude | Claude (~400 tokens) |
| Implementation | Claude ($15/M tokens) | Gemini CLI (FREE) |
| Per query savings | — | ~80% |
Project structure
relayai/
├── relayai/
│ ├── cli.py # Terminal commands
│ ├── auth.py # Credential management
│ ├── claude_client.py # Claude planning engine
│ ├── gemini_bridge.py # Gemini CLI subprocess bridge
│ ├── pipeline.py # Main orchestration
│ ├── file_manager.py # Parse and write files
│ └── project_scanner.py # Scan project for context
├── .gemini/
│ └── system.md # Gemini CLI system prompt
├── setup.py
├── pyproject.toml
└── requirements.txt
License
MIT
Metadata
Release files for relayai 2.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| relayai-2.0.1.tar.gz | 15.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| relayai-2.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 31.4 kB
Release files / relayai-2.0.1.tar.gz
| Download URL | relayai-2.0.1.tar.gz |
|---|---|
| Size | 15.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
46c07c728267e90de95d0b16f83771f350615d77d4d33ddf6192bb266ccf1fef
|
|
BLAKE2b-256 checksum How to use checksums |
9e572a905df754c50604f5dbbd33e9488f982779ad6797aadb1a716ac999554b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.3
|
Release files / relayai-2.0.1-py3-none-any.whl
| Download URL | relayai-2.0.1-py3-none-any.whl |
|---|---|
| Size | 16.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0f3ddae486140136ad336da4498c038da964a50e1e5cb3eb5de0258505037ee6
|
|
BLAKE2b-256 checksum How to use checksums |
afd00f0eac8a92f80b45f8e088a3c112c55d178131667be472eee228a20b1301
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.3
|