Skip to main content

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
google Gemini 2.5 Pro BYOK — no markup
openrouter 346+ models BYOK — no markup

How It Works

  1. Scans your project (respects .gitignore)
  2. Builds a context map of your codebase
  3. Sends your request + relevant code context to the AI
  4. AI plans steps, reads/writes files, runs commands
  5. 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

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

freeai_code-0.1.1.tar.gz (28.8 kB view details)

Uploaded Source

Built Distribution

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

freeai_code-0.1.1-py3-none-any.whl (35.3 kB view details)

Uploaded Python 3

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

Hashes for freeai_code-0.1.1.tar.gz
Algorithm Hash digest
SHA256 31488b77befc99e2f109baafd267bd2c3b7045875e88d80f65bf242dd38541ce
MD5 7be0744ea3575b20183b306b58d3cb35
BLAKE2b-256 6d06663a0712bddcc218dcf7a117a01bb964c3867661dbda5fe56a6919fb7e25

See more details on using hashes here.

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

Hashes for freeai_code-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 49208483aeb94f340824ed8c7cfb2032b263477a44a7e945cb0fbdcf2590201f
MD5 498b6ca81dd19434348129a0cc025fe4
BLAKE2b-256 6a02612af4f9d981918233681d050512b1126e7bdc4670c46016fedb9fc770ac

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