Free.ai Coder
Free AI coding assistant for your terminal. A free, open-source alternative to Claude Code, Cursor, and GitHub Copilot.
Website | PyPI | npm | Web IDE
Install
# Universal (Linux / macOS)
curl -fsSL https://free.ai/install | sh
# pip
pip install freeai-code
# npm
npm install -g freeai-code
Quick Start
# Interactive coding session in your project directory
cd your-project/
free-code
# Ask a one-shot question about your codebase
free-code ask "How does the auth system work?"
# Execute a task
free-code run "Add unit tests for the User model"
# Run a task in the Free.ai cloud (codex-style) and watch it
free-code cloud "Fix the failing CI on main" --repo https://github.com/you/project
# Initialize and scan codebase
free-code init
Commands
| Command | Description |
|---|---|
free-code |
Interactive coding session (alias: free-code chat) |
free-code ask "question" |
One-shot question about the codebase |
free-code run "task" |
Execute a coding task |
free-code cloud "task" |
Run a coding task in the Free.ai cloud (--repo URL, --model, --no-watch, --download DIR) |
free-code tasks |
List your recent cloud tasks |
free-code init |
Initialize config, scan codebase |
free-code config |
Show current configuration |
free-code config set key value |
Set a config value |
free-code login |
Authenticate with Free.ai |
Features
- File read/write with diff preview and approval gates
- Shell command execution (with confirmation in safe mode)
- Git integration (status, diff, commit, branch)
- Test runner auto-detection (pytest, jest, go test, cargo test)
- Streaming output with syntax highlighting
- Context window optimization and repo map generation
- .gitignore-aware file discovery
- Session sync — continue conversations from web to CLI and back
- Cloud tasks — run long coding tasks on Free.ai's GPUs and pick up the result later
Cloud Tasks
Run a coding task on Free.ai's infrastructure instead of your machine — like a codex agent from the terminal. Requires an API key: run free-code login and paste a key from free.ai/developer (free tier works).
# Submit and watch (polls until done, prints the markdown report)
free-code cloud "Add rate limiting to the API" --repo https://github.com/you/project
# Pick the cloud model
free-code cloud "Refactor the auth module" --model deepseek-coder
# Fire and forget (you get an email when it finishes)
free-code cloud "Write integration tests" --no-watch
# Download the resulting code as a zip, unpacked into ./result
free-code cloud "Fix the flaky test suite" --download ./result
# List recent tasks
free-code tasks
Configuration
Config is stored at ~/.free-code/config.yaml.
# Set your Free.ai token (get one at https://free.ai/account/)
free-code config set token sk-free-xxx
# Use your own API key (BYOK — no markup, use your own provider)
free-code config set provider openai
free-code config set api_key sk-xxx
# Choose a model
free-code config set model qwen7b
# Enable safe mode (confirm before file writes)
free-code config set safe_mode true
Supported Providers
| Provider | Default Model | Free Tier |
|---|---|---|
| free.ai (default) | Qwen 7B | 50K tokens/day |
| openai | GPT-4o | BYOK — no markup |
| anthropic | Claude Sonnet 4 | BYOK — no markup |
| Gemini 2.5 Pro | BYOK — no markup | |
| openrouter | 346+ models | BYOK — no markup |
How It Works
- Scans your project (respects .gitignore)
- Builds a context map of your codebase
- Sends your request + relevant code context to the AI
- AI plans steps, reads/writes files, runs commands
- You review and approve changes (safe mode)
All file operations happen locally on your machine. The AI sees only what it needs.
Pricing
- Anonymous: 10K tokens/day (Qwen Coder only)
- Free account: 50K tokens/day (sign up at free.ai)
- Paid plans: From $5/month for 200K tokens (pricing)
- BYOK: $0 — bring your own API key, no markup
Links
- Free.ai — 400+ free AI tools
- Web IDE — Use in your browser
- API Docs — Build on top of Free.ai
- Compare vs Claude Code
- Compare vs Cursor
vs Competitors
| Feature | Free.ai Coder | Claude Code | OpenAI Codex | Cursor | GitHub Copilot |
|---|---|---|---|---|---|
| Free tier | 50K tokens/day | None ($20/mo) | None ($200/mo) | None ($20/mo) | None ($10/mo) |
| Self-hosted models | Yes (Qwen, DeepSeek) | No | No | No | No |
| BYOK (bring your own key) | Yes — $0 markup | No | No | Partial | No |
| Open source CLI | Yes (MIT) | No | No | No | No |
| Web IDE | Yes (free.ai/coder/) | No | Yes | Yes | No |
| Terminal access | Yes | Yes | Yes | Yes | No |
| 346+ models | Yes | Claude only | GPT only | Multiple | GPT only |
| Session sync (CLI ↔ web) | Yes | No | No | No | No |
BYOK (Bring Your Own Key)
Use your own API keys from any provider — zero markup, zero fees. Free.ai just proxies the request.
# OpenAI
free-code config set provider openai
free-code config set api_key sk-proj-xxx
# Anthropic
free-code config set provider anthropic
free-code config set api_key sk-ant-xxx
# Google
free-code config set provider google
free-code config set api_key AIzaSyxxx
# OpenRouter (access 346+ models)
free-code config set provider openrouter
free-code config set api_key sk-or-xxx
When using BYOK, requests go directly to the provider. No markup. No logging. Your key, your usage, your bill.
You can also set keys via environment variables:
export FREEAI_PROVIDER=openai
export FREEAI_API_KEY=sk-proj-xxx
free-code
Free.ai Ecosystem
- Free.ai — 400+ free AI tools on the web
- Python SDK —
pip install free-dot-ai— use Free.ai from your code - CLI Coder —
pip install freeai-code— AI coding in your terminal - iOS App — Native iPhone/iPad app
- Android App — Native Android app
- API Docs — Build on top of Free.ai
- Web IDE — Code in your browser
License
MIT
Release files for freeai-code 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| freeai_code-0.1.2.tar.gz | 33.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| freeai_code-0.1.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 73.6 kB
Release files / freeai_code-0.1.2.tar.gz
| Download URL | freeai_code-0.1.2.tar.gz |
|---|---|
| Size | 33.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
dbadc5938ff9551f316a42cf47857064652d1c7f1a7532096eb1177d8697b642
|
|
BLAKE2b-256 checksum How to use checksums |
7fc4f08133ac1220e2d8c8e86d3d524246e3169bb43b13bae990bfe193caf390
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.7
|
Release files / freeai_code-0.1.2-py3-none-any.whl
| Download URL | freeai_code-0.1.2-py3-none-any.whl |
|---|---|
| Size | 39.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2b8a4ec6833ce9f7719bb845123b0dbb149de6634c8caedba66f6ae298a5cb70
|
|
BLAKE2b-256 checksum How to use checksums |
12c0474b908ebe7a1c099ef1eccb5b05e77413dbffa33be088e6c0c43fabf64b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.7
|