Skip to main content

free-code

Free AI coding assistant for your terminal. Powered by Free.ai.

Install

pip install free-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

Configuration

Config is stored at ~/.free-code/config.yaml.

# Set your Free.ai token
free-code config set token sk-free-xxx

# Use your own API key (BYOK)
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

  • free.ai (default) — Free tier with daily limits, paid plans for more
  • openai — Bring your own OpenAI API key
  • anthropic — Bring your own Anthropic API key
  • google — Bring your own Google AI API key
  • openrouter — Access 300+ models with one key

Features

  • Reads and edits files in your project
  • Shell command execution (with confirmation)
  • Git integration (status, diff, commit, branch)
  • Test runner auto-detection (pytest, jest, go test, cargo test)
  • Streaming output with syntax highlighting
  • Context window optimization
  • .gitignore-aware file discovery

License

MIT

Metadata

Release files for free-code 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for free-code 0.1.0
File Size Uploaded
free_code-0.1.0.tar.gz 26.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for free-code 0.1.0
File Interpreter ABI Platform
free_code-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 60.6 kB

Release files / free_code-0.1.0.tar.gz

Download URL free_code-0.1.0.tar.gz
Size 26.6 kB
Tags Source
SHA-256 checksum
How to use checksums
846bc284af76ae2dd0a60252d40fb991b7c794e638ca852d09defc8c2e0fe7b8
BLAKE2b-256 checksum
How to use checksums
2dbccd46bd5c77494b306d198e8acbfb385ac9117ddf172efdbbd79aecfb3181
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.7

Release files / free_code-0.1.0-py3-none-any.whl

Download URL free_code-0.1.0-py3-none-any.whl
Size 34.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2881190eb4cec0fc3c3d6bcb00cb6caadcce202461dbb20705983c2ddc22119d
BLAKE2b-256 checksum
How to use checksums
7c801c52be7f4995626dbb73c02ef250cac2b1d76ae0ed43e5c5ee1e0951fa4e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.7

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page