Free AI coding assistant — open-source Claude Code alternative. pip install freeai-code
Project description
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"
# 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 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
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 qwen2.5-coder-32b
# 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 2.5 Coder 32B | 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
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file freeai_code-0.1.1.tar.gz.
File metadata
- Download URL: freeai_code-0.1.1.tar.gz
- Upload date:
- Size: 28.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
31488b77befc99e2f109baafd267bd2c3b7045875e88d80f65bf242dd38541ce
|
|
| MD5 |
7be0744ea3575b20183b306b58d3cb35
|
|
| BLAKE2b-256 |
6d06663a0712bddcc218dcf7a117a01bb964c3867661dbda5fe56a6919fb7e25
|
File details
Details for the file freeai_code-0.1.1-py3-none-any.whl.
File metadata
- Download URL: freeai_code-0.1.1-py3-none-any.whl
- Upload date:
- Size: 35.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
49208483aeb94f340824ed8c7cfb2032b263477a44a7e945cb0fbdcf2590201f
|
|
| MD5 |
498b6ca81dd19434348129a0cc025fe4
|
|
| BLAKE2b-256 |
6a02612af4f9d981918233681d050512b1126e7bdc4670c46016fedb9fc770ac
|