self-hosted · BYOK · terminal-native

ZONE

A local AI coding agent with no gatekeeper.

Zone targets Claude Code / Codex parity on complex engineering tasks while staying fully self-hosted: your machine, your keys, your limits, your bill.

$ git clone https://github.com/BedreddinErkan/zone && cd zone && npm install && npm run build && npm link
GitHub

Self-hosted BYOK coding automation for people who want to own the stack.

Zone runs as an Ink CLI/TUI on your computer and talks directly to Anthropic or OpenAI with your API keys. No subscription ceiling, no opaque queue, no vendor gate between your repo and the model.

Terminal-native power, not SaaS chrome.

@file context

Inject exact files into the run without losing terminal flow.

image input

Drop screenshots, diagrams, and UI states into the agent loop.

/undo

Roll back agent edits when a path is wrong, then steer again.

web fetch

Pull current docs and references into local reasoning.

user hooks

Run your own scripts around approvals, builds, and checkpoints.

MCP client

Connect local tools and context servers without surrendering keys.

Fast controls without leaving the terminal.

zone commands
/model switch model mid-session
/keys manage API keys
/cost current session cost
/metrics token + cost breakdown
/sessions resume past runs
/plan-mode plan before executing
/init initialize a repo
/memory project memory
/autocommit auto-commit edits
/websearch search the web

Full command reference in the README.

Zone shows the real per-run cost.

The differentiator is not another dashboard. It is honest telemetry at the moment you need it: tokens, elapsed time, model, and dollars for the exact run you just approved.

coding sessions / day
5
avg cost / session
$0.30
real Zone runs: full rebuild ~$0.77 · typical feature / refactor (cached) $0.20–0.50
pro + zone
$65
max 5×
$100
max 20×
$200

ZONE · byok

  • pay only for what you use
  • no caps — never blocked mid-session
  • every cent visible, per task

MAX · subscription

  • flat rate, predictable
  • rate-limited (5-hour rolling window)
  • usage is opaque vs a per-token bill

Rates (Anthropic, Jun 2026): Sonnet 4.6 $3 / $15 per MTok, cache-hit input $0.30 (−90%); Opus 4.8 $5 / $25. claude.ai Pro $20, Max 5× $100, Max 20× $200 — consumer plans don't include API access; Claude Code under a plan is rate-limited. Zone is BYOK on the Anthropic API.

Clone it. Build it. Run it locally.

Windows users: run Zone inside WSL 2 (Windows Subsystem for Linux).

01

clone

git clone https://github.com/BedreddinErkan/zone
02

build

npm install && npm run build && npm link
03

run

cd ~/your-project && zone