Terminal-First AI Coding Agent

Your Coding Agent.Your Machine. Your Rules.

CodeTwin is a terminal-first AI coding agent that runs entirely on your machine. BYOK. Zero telemetry. Five autonomy levels. You decide how autonomous it gets.

curl -fsSL https://code-twin.vercel.app/install.sh | bash

Terminal-first

Runs in your shell

You set the autonomy

Five dependence levels

Twin memory

Context that survives restarts

BYOK — any provider

Zero vendor lock-in

How It Works

A New Paradigm for Coding with Agents

Write your task

Give it a task. It shows its plan.

CodeTwin builds a pre-flight impact map before touching any file. See exactly which files get written, which shell commands run, and which functions get affected. You always know what's about to happen before it happens.

Write your task screenshot
See tools in context, always

Five autonomy levels. You choose when to intervene.

At dependence level 3, it asks when multiple approaches exist. At level 1, it asks before every write. At level 5, it executes and reports. Change the level mid-task. You control how autonomous it gets.

Autonomy level 1 screenshot
Act on behalf without losing control

Project memory. Stored locally.

CodeTwin maintains a twin profile per project — stored locally in SQLite, never sent anywhere. It remembers past decisions and why they were made, active constraints, and failure patterns — what broke and in what context.

Act on behalf without losing control screenshot
Write and share badges

Works with every major LLM provider.

OpenAI, Anthropic, Groq, Gemini, Mistral, Ollama, Azure. One config field. No vendor lock-in. Bring your own API key and switch providers with a single config change. Zero code changes required.

Write and share badges screenshot
Terminal First · Local First · Zero Telemetry · Terminal First · Local First · Zero Telemetry · Terminal First · Local First · Zero Telemetry · Terminal First · Local First · Zero Telemetry ·

Quick Start

Up and Running in 60 Seconds

Follow these three simple steps in order. Copy, paste, run.

01

Install CodeTwin

Copy this command, run it, then open a new terminal window.

curl -fsSL https://code-twin.vercel.app/install.sh | bash
02

Authenticate Provider

Run login, pick your provider, and paste your API key when asked.

codetwin providers login
03

Start CodeTwin in Your Project

Go to your project folder, run this command, then type your task in plain English.

codetwin

Quick Install

curl -fsSL https://code-twin.vercel.app/install.sh | bash
  • Zero cloud dependency
  • Bring your own API key
  • Five autonomy levels
  • Local twin memory per project

Open Source Contributors

Loading contributors...

Live sync in progress...

View all contributors →

Support

Frequently Asked Questions

Everything you need to know about CodeTwin. Can't find your answer? Open an issue on GitHub.

Ready to Take Control?

No cloud. No vendor lock-in. Just you, your terminal, and an AI agent that listens.