1
0
Fork 0
A naive updated version of the Claude Code leak. Allows using Github Copilot plans for models. This is more of a reference than anything else; should use GoCode instead.
  • TypeScript 100%
Find a file
Sky Johnson bd56749e71 Fix /login command not registered due to isUsing3PServices() always returning true
Copilot is not a traditional 3P service like Bedrock/Vertex/Foundry — it has
its own OAuth login flow that the login command already supports. Only exclude
login/logout for actual 3P providers that manage auth externally.
2026-04-04 22:19:06 -05:00
assets Fix Copilot model selection by switching to VS Code's OAuth client ID 2026-04-01 21:37:27 -05:00
scripts Fix Copilot model selection by switching to VS Code's OAuth client ID 2026-04-01 21:37:27 -05:00
src Fix /login command not registered due to isUsing3PServices() always returning true 2026-04-04 22:19:06 -05:00
.gitignore Fix build portability and add build.sh 2026-04-04 22:10:38 -05:00
build.sh Fix build portability and add build.sh 2026-04-04 22:10:38 -05:00
bun.lock Fix build portability and add build.sh 2026-04-04 22:10:38 -05:00
COPILOT_FIX.md Fix Copilot model selection by switching to VS Code's OAuth client ID 2026-04-01 21:37:27 -05:00
env.d.ts Fix Copilot model selection by switching to VS Code's OAuth client ID 2026-04-01 21:37:27 -05:00
FEATURES.md Fix Copilot model selection by switching to VS Code's OAuth client ID 2026-04-01 21:37:27 -05:00
install.sh Fix build portability and add build.sh 2026-04-04 22:10:38 -05:00
package.json Fix build portability and add build.sh 2026-04-04 22:10:38 -05:00
README.md Rewrite README with concise build and Copilot login instructions 2026-04-04 22:14:42 -05:00
tsconfig.json Fix Copilot model selection by switching to VS Code's OAuth client ID 2026-04-01 21:37:27 -05:00

FreeCode

A free, unlocked build of Claude Code with all telemetry stripped, injected guardrails removed, and all experimental features enabled.

Build

Requires Bun >= 1.3.11 on macOS or Linux.

git clone https://git.sharkk.net/sky/freecode.git
cd freecode
./build.sh

This installs dependencies and compiles ./freecode-dev with all 45+ experimental features enabled.

Or use the one-liner installer (installs Bun if needed, builds, symlinks to PATH):

curl -fsSL https://git.sharkk.net/sky/freecode/raw/branch/master/install.sh | bash

Login

FreeCode works through GitHub Copilot's API — no Anthropic API key needed.

./freecode-dev /login

This opens a GitHub device flow in your browser. Approve it and you're authenticated. Models available through Copilot include Claude Sonnet and Claude Haiku.

To use an Anthropic API key directly instead:

export ANTHROPIC_API_KEY="sk-ant-..."
./freecode-dev

Usage

./freecode-dev                          # interactive REPL
./freecode-dev -p "your prompt"         # one-shot mode
./freecode-dev --model claude-sonnet-4-6  # specify a model

What's changed from upstream

Telemetry removed — all OpenTelemetry, GrowthBook analytics, Sentry reporting, and event logging endpoints are dead-code-eliminated or stubbed. Nothing phones home.

Injected guardrails removed — Anthropic's system-level prompt restrictions (hardcoded refusal patterns, "cyber risk" blocks, managed-settings overlays) are stripped. The model's own safety training still applies.

Experimental features unlocked — all 45+ compile-time feature flags that build cleanly are enabled, including voice mode, deep thinking, multi-agent planning, IDE bridge, token budgets, and more. See FEATURES.md for the full list.