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.0.tar.gz (14.0 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.0-py3-none-any.whl (14.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: relayai-2.0.0.tar.gz
  • Upload date:
  • Size: 14.0 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.0.tar.gz
Algorithm Hash digest
SHA256 003abd4c0da8c32a0507bc57f0886d4a05c6eeb7eb051d5480d38d9e6a7efb61
MD5 98c53948fdbb986ff35536145b0fbb4d
BLAKE2b-256 bea66d0d82e8eebc3c319ed7a4efbb89b6f25f7f930831313074a51a076ba74e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: relayai-2.0.0-py3-none-any.whl
  • Upload date:
  • Size: 14.8 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 01e136d5f2a97f1386a6d631cea4109128d3d5d33e005e41de3e6e80d6d411aa
MD5 db27f0f08550a0a31208c6e488701f2e
BLAKE2b-256 7fb74c4ed1a1ed6b74f405466707c15eb7762e6985b66c16e2b3a6423b825373

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