CodeFreedom
Unified interface for all code agents. Simple LLM routing. Sandboxing just a click away.
CodeFreedom solves three problems:
- Model lock-in — switch models across providers without reconfiguring your code agent.
- Environment chaos — isolated, reproducible environments per project with GPU support.
- Config sprawl — profiles, proxy routing, and sandbox settings managed from one place (
~/.codefreedom).
It orchestrates code agents through their publicly supported interfaces (environment variables, CLI flags, API endpoints). No patching, no reverse-engineering.
Full documentation: https://nilayparikh.github.io/codefreedom/
Bring Your Own Agent
CodeFreedom works with any code agent that supports OpenAI-compatible or Anthropic-compatible APIs — Claude Code, Cursor, Codex CLI, VS Code extensions, and more. The architecture is agent-agnostic: each agent gets a subcommand, profile, and routes through the same proxy.
Currently, Claude Code and MiMoCode are the fully implemented agents. Adding a new agent is a matter of profile + subcommand — the proxy, sandbox, and tooling layers are shared.
Web Search
Claude Code's built-in WebSearch requires Anthropic's internal login and silently fails for most users. The CodeFreedom proxy solves this with a built-in SearXNG-shaped bridge that routes every WebSearch call to a local Camoufox stealth browser — transparently, for any model. See Web Search Interception.
Principles
- Just configuration. Profiles are environment variables. Proxy routing is standard LiteLLM config.
- Opt-in providers. Set an API key to enable a provider. Leave it empty to disable. Nothing phones home by default.
- All config in one place.
~/.codefreedomis the single source of truth.
Data Privacy
CodeFreedom is a local configuration tool. It does not:
- Collect telemetry, analytics, or usage data.
- Connect to any external servers.
- Store or transmit your prompts, code, or API keys.
All configuration lives on your machine in ~/.codefreedom/. CodeFreedom generates config files that you use with third-party tools (LiteLLM, Claude Code, Docker, etc.). You are responsible for reviewing the privacy policies and terms of service of every provider and tool you configure.
Free model endpoints — Free tiers may log requests, retain conversation data, or use inputs for model improvement. Always read the provider's privacy policy before sending sensitive code. See Free Models for a guide.
Disclaimer
CodeFreedom is provided "as is" without warranty of any kind. Use at your own risk.
- Supported methods only. CodeFreedom integrates with code agents exclusively through their publicly documented interfaces — environment variables, CLI flags, config files, and API endpoints. It does not reverse-engineer, patch, modify, or tamper with any code agent.
- Third-party responsibility. CodeFreedom orchestrates upstream tools (LiteLLM, Claude Code, Docker, etc.) but does not control their behavior. You are responsible for evaluating the suitability, security, and terms of service of every upstream tool and provider you configure.
- Security. The proxy handles API keys and tokens. Sandbox mode mounts host directories (
~/.ssh,~/.gitconfig) into containers. Configure these according to your organization's security policies. - Trademarks. CodeFreedom is not affiliated with, endorsed by, or sponsored by Anthropic, Microsoft, Anysphere, OpenAI, BerriAI, Docker, or any other third party mentioned in this project. All trademarks belong to their respective owners. See NOTICE.
Quick Start
Install
pip install codefreedom
Initialize
cf setup init
Creates ~/.codefreedom/ with default profiles, proxy configs, and provider templates.
Launch
# Launch Claude Code through the proxy
codefreedom run agent claude-code
# Launch in a sandboxed container
codefreedom run agent claude-code --sandbox
# Use GPU images
codefreedom run agent claude-code --sandbox --cuda # NVIDIA
codefreedom run agent claude-code --sandbox --rocm # AMD
Short aliases: cf run agent claude-code is equivalent to codefreedom run agent claude-code.
See the Getting Started guide for proxy setup, custom profiles, browser tools, and more.
Features
| Feature | Details |
|---|---|
| LLM proxy | Self-hosted codefreedom:litellm-latest image (embedded PostgreSQL, multi-provider routing) |
| Code agent launcher | codefreedom run agent claude-code CLI -- local + sandbox modes |
| Sandboxing | Pre-configured containers (CUDA, ROCm, Ubuntu) |
| Profile management | Model switching, env inheritance, isolation |
| Browser tools | Chrome (CDP) + Camoufox (MCP) for web automation |
| Backup & restore | Config backups with diff preview and selective restore |
Requirements
- Python 3.10+
- Docker -- required for sandbox mode and the proxy
- Node.js +
@anthropic-ai/claude-code-- for local mode only
License
Apache 2.0 -- see LICENSE.
Claude Code is a trademark of Anthropic. VS Code is a trademark of Microsoft. Cursor is a trademark of Anysphere. Codex is a trademark of OpenAI. Other trademarks are property of their respective owners. See NOTICE.
Metadata
Release files for codefreedom 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| codefreedom-0.2.0.tar.gz | 179.3 kB | With provenance | Details for codefreedom-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| codefreedom-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for codefreedom-0.2.0-py3-none-any.whl |
Total release size: 335.3 kB
Release files / codefreedom-0.2.0.tar.gz
| Download URL | codefreedom-0.2.0.tar.gz |
|---|---|
| Size | 179.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0fc58217e0ed3ecf02f4e9ab85366e8c5cf04eba68462631d5c53ea1b7cf2648
|
|
BLAKE2b-256 checksum How to use checksums |
28b0c386739c7864ef5eb7b4f216cbde309cbd9c2297f22f033b05d34d2230aa
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 14, 2026.
Transparency logRelease files / codefreedom-0.2.0-py3-none-any.whl
| Download URL | codefreedom-0.2.0-py3-none-any.whl |
|---|---|
| Size | 155.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
434092d70f7cc8c7e22285c703a3584926a4e05796573160b1bee7d350edb399
|
|
BLAKE2b-256 checksum How to use checksums |
ce8b23042872882aa0228c34733de01f8c57323f99ccf8a5b20ff2891eafb6f2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 14, 2026.
Transparency logSecurity for codefreedom 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for codefreedom-0.2.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 14, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.