Skip to main content

Claude plans. Gemini 3 Flash speaks. Save on API costs with zero quality loss.

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

relayai-2.0.1.tar.gz (15.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

relayai-2.0.1-py3-none-any.whl (16.2 kB view details)

Uploaded Python 3

File details

Details for the file relayai-2.0.1.tar.gz.

File metadata

  • Download URL: relayai-2.0.1.tar.gz
  • Upload date:
  • Size: 15.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for relayai-2.0.1.tar.gz
Algorithm Hash digest
SHA256 46c07c728267e90de95d0b16f83771f350615d77d4d33ddf6192bb266ccf1fef
MD5 048bec3d3f67854dc52498291df58f50
BLAKE2b-256 9e572a905df754c50604f5dbbd33e9488f982779ad6797aadb1a716ac999554b

See more details on using hashes here.

File details

Details for the file relayai-2.0.1-py3-none-any.whl.

File metadata

  • Download URL: relayai-2.0.1-py3-none-any.whl
  • Upload date:
  • Size: 16.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for relayai-2.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0f3ddae486140136ad336da4498c038da964a50e1e5cb3eb5de0258505037ee6
MD5 fbc7e9e9647dacff97721b2184d88dc8
BLAKE2b-256 afd00f0eac8a92f80b45f8e088a3c112c55d178131667be472eee228a20b1301

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page