Star 历史趋势
数据来源: GitHub API · 生成自 Stargazers.cn
README.md

free-code

The free build of Claude Code.

All telemetry stripped. All injected security-prompt guardrails removed. All experimental features unlocked. One binary, zero callbacks home.

curl -fsSL https://raw.githubusercontent.com/paoloanzn/free-code/main/install.sh | bash

Checks your system, installs Bun if needed, clones, builds with all features enabled, and puts free-code on your PATH. Then just export ANTHROPIC_API_KEY="sk-ant-..." and run free-code.

free-code screenshot


What is this

This is a clean, buildable fork of Anthropic's Claude Code CLI -- the terminal-native AI coding agent. The upstream source became publicly available on March 31, 2026 through a source map exposure in the npm distribution.

This fork applies three categories of changes on top of that snapshot:

1. Telemetry removed

The upstream binary phones home through OpenTelemetry/gRPC, GrowthBook analytics, Sentry error reporting, and custom event logging. In this build:

  • All outbound telemetry endpoints are dead-code-eliminated or stubbed
  • GrowthBook feature flag evaluation still works locally (needed for runtime feature gates) but does not report back
  • No crash reports, no usage analytics, no session fingerprinting

2. Security-prompt guardrails removed

Anthropic injects system-level instructions into every conversation that constrain Claude's behavior beyond what the model itself enforces. These include:

  • Hardcoded refusal patterns for certain categories of prompts
  • Injected "cyber risk" instruction blocks
  • Managed-settings security overlays pushed from Anthropic's servers

This build strips those injections. The model's own safety training still applies -- this just removes the extra layer of prompt-level restrictions that the CLI wraps around it.

3. Experimental features enabled

Claude Code ships with dozens of feature flags gated behind bun:bundle compile-time switches. Most are disabled in the public npm release. This build unlocks all 45+ flags that compile cleanly, including:

FeatureWhat it does
ULTRAPLANRemote multi-agent planning on Claude Code web (Opus-class)
ULTRATHINKDeep thinking mode -- type "ultrathink" to boost reasoning effort
VOICE_MODEPush-to-talk voice input and dictation
AGENT_TRIGGERSLocal cron/trigger tools for background automation
BRIDGE_MODEIDE remote-control bridge (VS Code, JetBrains)
TOKEN_BUDGETToken budget tracking and usage warnings
BUILTIN_EXPLORE_PLAN_AGENTSBuilt-in explore/plan agent presets
VERIFICATION_AGENTVerification agent for task validation
BASH_CLASSIFIERClassifier-assisted bash permission decisions
EXTRACT_MEMORIESPost-query automatic memory extraction
HISTORY_PICKERInteractive prompt history picker
MESSAGE_ACTIONSMessage action entrypoints in the UI
QUICK_SEARCHPrompt quick-search
SHOT_STATSShot-distribution stats
COMPACTION_REMINDERSSmart reminders around context compaction
CACHED_MICROCOMPACTCached microcompact state through query flows

See FEATURES.md for the full audit of all 88 flags and their status.


Quick install

curl -fsSL https://raw.githubusercontent.com/paoloanzn/free-code/main/install.sh | bash

This will check your system, install Bun if needed, clone the repo, build the binary with all experimental features enabled, and symlink it as free-code on your PATH.

After install, just run:

export ANTHROPIC_API_KEY="sk-ant-..." free-code

Requirements

  • Bun >= 1.3.11
  • macOS or Linux (Windows via WSL)
  • An Anthropic API key (set ANTHROPIC_API_KEY in your environment)
# Install Bun if you don't have it curl -fsSL https://bun.sh/install | bash

Build

# Clone the repo git clone https://github.com/paoloanzn/claude-code.git cd claude-code # Install dependencies bun install # Standard build -- produces ./cli bun run build # Dev build -- dev version stamp, experimental GrowthBook key bun run build:dev # Dev build with ALL experimental features enabled -- produces ./cli-dev bun run build:dev:full # Compiled build (alternative output path) -- produces ./dist/cli bun run compile

Build variants

CommandOutputFeaturesNotes
bun run build./cliVOICE_MODE onlyProduction-like binary
bun run build:dev./cli-devVOICE_MODE onlyDev version stamp
bun run build:dev:full./cli-devAll 45+ experimental flagsThe full unlock build
bun run compile./dist/cliVOICE_MODE onlyAlternative output directory

Individual feature flags

You can enable specific flags without the full bundle:

# Enable just ultraplan and ultrathink bun run ./scripts/build.ts --feature=ULTRAPLAN --feature=ULTRATHINK # Enable a specific flag on top of the dev build bun run ./scripts/build.ts --dev --feature=BRIDGE_MODE

Run

# Run the built binary directly ./cli # Or the dev binary ./cli-dev # Or run from source without compiling (slower startup) bun run dev # Set your API key export ANTHROPIC_API_KEY="sk-ant-..." # Or use Claude.ai OAuth ./cli /login

Quick test

# One-shot mode ./cli -p "what files are in this directory?" # Interactive REPL (default) ./cli # With specific model ./cli --model claude-sonnet-4-6-20250514

Project structure

scripts/
  build.ts              # Build script with feature flag system

src/
  entrypoints/cli.tsx   # CLI entrypoint
  commands.ts           # Command registry (slash commands)
  tools.ts              # Tool registry (agent tools)
  QueryEngine.ts        # LLM query engine
  screens/REPL.tsx      # Main interactive UI

  commands/             # /slash command implementations
  tools/                # Agent tool implementations (Bash, Read, Edit, etc.)
  components/           # Ink/React terminal UI components
  hooks/                # React hooks
  services/             # API client, MCP, OAuth, analytics
  state/                # App state store
  utils/                # Utilities
  skills/               # Skill system
  plugins/              # Plugin system
  bridge/               # IDE bridge
  voice/                # Voice input
  tasks/                # Background task management

Tech stack

RuntimeBun
LanguageTypeScript
Terminal UIReact + Ink
CLI parsingCommander.js
Schema validationZod v4
Code searchripgrep (bundled)
ProtocolsMCP, LSP
APIAnthropic Messages API

IPFS Mirror

A full copy of this repository is permanently pinned on IPFS via Filecoin:

If this repo gets taken down, the code lives on.


License

The original Claude Code source is the property of Anthropic. This fork exists because the source was publicly exposed through their npm distribution. Use at your own discretion.

关于 About

The free build of Claude Code. All telemetry removed, security-prompt guardrails stripped, all experimental features enabled.

语言 Languages

TypeScript100.0%
Shell0.0%
JavaScript0.0%

提交活跃度 Commit Activity

代码提交热力图
过去 52 周的开发活跃度
0
Total Commits
峰值: 1次/周
Less
More

核心贡献者 Contributors