Skip to main content

Unified interface for all code agents — LLM proxy routing, Docker sandboxing, profile management, and browser tools. Switch models and providers without reconfiguring.

Project description

CodeFreedom

License Python Integration Tests Gated Check-in OpenSSF Scorecard Trivy Security Scan PyPI Downloads Docker Hub GHCR Image

Unified interface for all code agents. Simple LLM routing. Sandboxing just a click away.

Full documentation: https://nilayparikh.github.io/codefreedom/

What is CodeFreedom?

The Problem

AI code agents are powerful, but the ecosystem around them is fragmented. Each agent carries its own configuration, model preferences, and runtime dependencies. There is no portable layer that lets you move between agents, models, or providers without starting over.

That fragmentation creates three compounding risks:

  • Vendor lock-in -- choosing a provider today can constrain your choices tomorrow. As the model landscape evolves, being tied to one ecosystem means missing better capabilities, pricing, or reliability from competitors.
  • Unmanaged cost -- without visibility across providers, there is no way to route work to the most cost-effective model. Token spend grows unchecked because switching providers is a manual, error-prone process.
  • Complexity as a barrier -- setting up proxies, sandboxes, and provider integrations demands infrastructure expertise. Developers who should be building products spend time plumbing tooling, or avoid the tools altogether.

The Solution

CodeFreedom is a CLI that sits between you and your code agent (Claude Code, MiMoCode, OpenCode, etc.). It provides a portable abstraction layer so you can:

  1. Switch models and providers -- change your backend without reconfiguring your agent.
  2. Isolate environments -- reproducible, sandboxed sessions per project with GPU support.
  3. Manage everything from one place -- profiles, proxy routing, and sandbox settings live in ~/.codefreedom.

It orchestrates agents through their publicly supported interfaces (environment variables, CLI flags, API endpoints). No patching, no reverse-engineering.

Supported Agents

Agent Alias Description
Claude Code cc Anthropic's code agent
MiMoCode mc Xiaomi's code agent
OpenCode oc OpenCode code agent

All agents share the same proxy, sandbox, and tooling layers.

Video Walkthrough

Video Walkthrough

Quick Start

Install

pip install codefreedom

Pick a recipe and set up

# See available recipes
cf s i -l

# Plan + apply a recipe (recommended -- shows preview, prompts to confirm)
cf s i -pa costeffective-coding

A recipe is a pre-built configuration bundle that wires up proxy, profiles, and provider settings in one step. See recipes/ for options.

Start the proxy and launch an agent

# Start the LiteLLM proxy (auto-starts browser tools)
cf r px start

# Launch your agent
cf r ag cc          # Claude Code
cf r ag mc          # MiMoCode
cf r ag oc          # OpenCode

# Or launch in a sandboxed container
cf r ag cc --sandbox
cf r ag cc --sandbox --cuda   # NVIDIA GPU
cf r ag cc --sandbox --rocm   # AMD GPU

Common commands

Command What it does
cf s i -l List available recipes
cf s i -pa <recipe> Plan + apply a recipe
cf r px start Start proxy + tools
cf r px stop Stop proxy + tools
cf r px status Check proxy health
cf r ag cc Launch Claude Code
cf r ag mc Launch MiMoCode
cf r ag oc Launch OpenCode
cf run tools status Check tool container status
cf manage admin backup Backup config
cf manage doctor Diagnose issues

See the full documentation for proxy setup, custom profiles, browser tools, and more.

Features

Feature Details
LLM proxy Self-hosted LiteLLM image (embedded PostgreSQL, multi-provider routing)
Agent launcher Claude Code, MiMoCode, OpenCode -- local + sandbox modes
Sandboxing Pre-configured containers (CPU, CUDA, ROCm) for each agent
Profiles Model switching, env inheritance, isolation
Browser tools Chrome (CDP + MCP), Camoufox stealth browser (MCP), GitHub MCP, Web Bridge
Backup & restore Config backups with diff preview and selective restore

Requirements

  • Python 3.10+
  • Docker -- required for sandbox mode and the proxy
  • Node.js -- for local mode (agent-specific)

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.
  • All config in one place. ~/.codefreedom is the single source of truth.

Data Privacy

CodeFreedom is a local configuration tool. It does not collect telemetry, connect to external servers, or store/transmit your prompts, code, or API keys.

All configuration lives on your machine in ~/.codefreedom/. You are responsible for reviewing the privacy policies of every provider and tool you configure.

Disclaimer

CodeFreedom is provided "as is" without warranty of any kind. Use at your own risk. See NOTICE for trademark and third-party disclaimers.

License

Apache 2.0 -- see LICENSE.

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

codefreedom-0.2.1.dev1.tar.gz (189.0 kB view details)

Uploaded Source

Built Distribution

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

codefreedom-0.2.1.dev1-py3-none-any.whl (164.8 kB view details)

Uploaded Python 3

File details

Details for the file codefreedom-0.2.1.dev1.tar.gz.

File metadata

  • Download URL: codefreedom-0.2.1.dev1.tar.gz
  • Upload date:
  • Size: 189.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for codefreedom-0.2.1.dev1.tar.gz
Algorithm Hash digest
SHA256 64401da35e120a899c7af9719cede86bf9f3f3c3d61cb3bafebdd1d84f98d423
MD5 604883ac55126e0d5709f305aba42934
BLAKE2b-256 238cbb2e9ee46bf73f069d39591caf59f15d4e16e8f698c25332677e3614da98

See more details on using hashes here.

Provenance

The following attestation bundles were made for codefreedom-0.2.1.dev1.tar.gz:

Publisher: publish-dev.yml on nilayparikh/codefreedom

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file codefreedom-0.2.1.dev1-py3-none-any.whl.

File metadata

File hashes

Hashes for codefreedom-0.2.1.dev1-py3-none-any.whl
Algorithm Hash digest
SHA256 cf1a0f1641e9856920434eb7a496d4ca9e791f9c65e67335a3e8de394e0d788e
MD5 85d862719937da61b307a3094fe17b26
BLAKE2b-256 7c5a8150d67cc8a49f9443318b006b6ff37df6a75f6575f53e1896f659a9d89c

See more details on using hashes here.

Provenance

The following attestation bundles were made for codefreedom-0.2.1.dev1-py3-none-any.whl:

Publisher: publish-dev.yml on nilayparikh/codefreedom

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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