← Back to Leaderboard
Ttwinnydotdev

twinnydotdev/twinny

VS Code coding assistant with local or hosted models and an optional team gateway

Engineering Health (Methodology)
A+ · 88/100
Maintenance Activity
● Updated yesterday
Latest Release
v4.0.20
Commercial License Check
MIT · Commercial Friendly

Automated SPDX check for reference only — not legal advice. Disclaimer

Maintenance35/35
Fork Adoption16/25
Release Cadence17/20
License Clarity20/20
Local AISelf-HostedAPI1 README badge views (30d)
Total Stars
★ 3,711
24h Growth
+1
7d Growth
+6
Forks
247

GitHub Star History

Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.

twinnydotdev/twinny Star History (2023-08-21 - 2026-12-01) ALL-TIME STAR HISTORY (2023-08 – 2026-12) +3.7k in 1198d · avg +3/day 3.9k 2k 0 2023-08-21: ★ 12023-11-04: ★ 1482024-01-20: ★ 2992024-04-06: ★ 1,0162024-06-22: ★ 2,0912024-09-07: ★ 2,4542024-11-23: ★ 2,9762025-02-08: ★ 3,1972025-04-26: ★ 3,3592025-07-12: ★ 3,4342025-09-27: ★ 3,5022025-12-13: ★ 3,5382026-02-28: ★ 3,5622026-05-16: ★ 3,5842026-08-01: ★ 3,6072026-10-17: ★ 3,6602026-12-01: ★ 3,711 ★ 3.7k 2023-08 2025-04 2026-12

Evidence-Backed Technical Brief

AI Deep Review

Architecture & Core Mechanics

Twinny separates editor workflows from inference. The TypeScript VS Code extension in src/extension handles completions, chat, inline edits, reviews, terminal actions, embeddings, and provider selection; src/webview contains the React sidebar. The editor sends inference requests to configured model services and can use different providers for completion and chat. A team can add a gateway without changing the editor workflow.

src/gateway builds into packages/twinny-server/cli.js. The dependency-free gateway serves chat, completion, and embeddings through configured model backends and handles access keys, usage, licensing, and administration. src/protocol defines both the extension-facing gateway protocol and the WebSocket peer protocol for pooling developer machines. Separately, the Devices feature pairs computers over an encrypted peer-to-peer link without an account or relay.

Key Capabilities & Differentiators

Twinny combines ghost-text completion with inline edits that can be accepted or rejected by hunk, and reviews working-tree changes, branch diffs, or GitHub pull requests. Chat can attach files, symbols, diagnostics, diffs, and terminal context. Workspace search combines keyword and vector retrieval, reranks results before adding them to the prompt, updates on save, and shows sources under replies. The experimental agent can read, search, and edit files and run commands; command execution asks for approval by default.

Local options include Ollama, LM Studio, llama.cpp, and other OpenAI-compatible servers. Hosted integrations include OpenAI, Anthropic, Gemini, and Mistral, with Codestral listed for completion. Provider support does not make every model suitable for every task: validate completion, chat, and embeddings separately. The gateway adds revocable per-developer keys stored as hashes, per-user and per-model usage, and a request queue for a shared GPU.

Trade-offs & Limitations

Compared with a managed coding assistant, Twinny gives you control over model placement and where code context is sent, in exchange for choosing models, maintaining endpoints, and tuning capacity. Local inference can keep requests inside your network, but a hosted backend still receives the context routed to it, even through a self-hosted gateway. Shared GPU queuing manages contention rather than adding capacity, so test interactive completion under concurrent chat and indexing loads.

The extension is MIT-licensed, but not every gateway feature is included in the free tier. The gateway is free for up to five developers; additional seats are listed at $15 per seat per month, with a separate $29 one-time Personal licence. Policy controls, recording, and plugins require a licence, which is checked locally. Standard usage accounting excludes prompt and reply content; licensed recording can retain both on the gateway when enabled and disclosed to users.

Hardware & Deployment Guide

Start with VS Code 1.93 or newer and install the extension. For local inference, run a model server: Twinny detects Ollama, LM Studio, and llama.cpp on their usual ports and asks which models to use. For hosted inference, configure the provider instead of provisioning a local GPU. For teams, npx twinny-server quickstart detects the model server, writes configuration, creates an admin key, and starts serving. The gateway also has Docker packaging under packages/twinny-server and a Kubernetes chart in deploy/helm.

Before rollout, verify model choices, workspace routing, key revocation, and recording settings; for shared inference, test realistic concurrency rather than sizing from the gateway alone. Workspaces moving from name-based index storage need a one-time rebuild in the Embeddings tab; existing indexes are left untouched. Release v3.23.0 added vision model support. The listed release is v4.0.20, while the package manifest reads 4.3.26; confirm the actual artifact version before pinning a deployment.

Model routing: Use a local backend for completion and a different endpoint for chat.
Workspace retrieval: Reranked keyword and vector search, updates on save, and sources shown under replies.
Edit controls: Accept or reject inline diffs by hunk; experimental agent commands ask for approval by default.
GPU sharing: Encrypted peer-to-peer device pairing without an account or relay, plus a separate gateway pool with request queuing.
Gateway operations: Revocable hashed developer keys, per-user and per-model usage, Prometheus metrics, and a hash-chained admin audit log.
Licensed governance: Workspace routing policies, OpenID Connect SSO, a shared context index, and optional disclosed prompt recording.
Best For

VS Code developers and teams that want to choose where inference runs, separate completion from chat, or share models behind a gateway with per-developer access.

Skip If

Your team wants a fully managed service with no endpoint operations, or needs centralized policy and integrations without paid licensing.

Reviewed on 2026-12-01 · Grounded in GitHub README, root file tree & releasesMethodologyReport inaccuracy

Quick Start & Installation

Local AISelf-HostedAPI
npx twinny-server quickstart

AI Context Briefing (for Claude / Cursor / Windsurf)

Standardized architecture summary & quickstart commands ready to paste into coding agents.

Raw .md ↗
curl -sL https://repoforai.com/repo/twinnydotdev/twinny.md

Embed Star History Chart & Badges in README.md

Full-history Star History SVGs and velocity cards on GitHub Camo: drop-in replacement for OSSInsight and Star History widgets.

twinnydotdev/twinny Star History on RepoForAI

Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).

Frequently Asked Questions about twinny

Does a team need twinny-server, or can each VS Code client connect directly?

No. Each VS Code client can connect directly to its chosen providers, and completion and chat can use different backends. Add twinny-server when you need shared model defaults, revocable developer keys, per-user usage, or a queue for shared GPU capacity.

How should we size GPU memory and test runtime overhead?

There is no single VRAM requirement. The selected models and serving backend determine inference memory, while context length and concurrency affect how much capacity the deployment needs. Test completion latency separately from chat throughput, and include indexing activity in the trial if you plan to use workspace search. A gateway queue can manage contention, but it does not add GPU capacity.

What does the MIT licence cover, and what should a self-hosted team check before rollout?

The extension is MIT-licensed. The gateway is free for up to five developers; additional seats are listed at $15 per seat per month, and the one-time $29 Personal licence unlocks licensed features for an individual. Licence checks are local. For compliance, verify where each route sends prompts and how optional recording is configured: self-hosting the gateway does not make a hosted upstream private to your network.

When is Twinny a better fit than a managed assistant or a local-only extension setup?

Choose Twinny over a managed coding assistant when model placement and control over source-code routing matter more than a turnkey service. Compared with a local-only extension setup, the gateway adds shared defaults, per-user access, and usage visibility, but it also adds an operator responsibility. If each developer can manage their own endpoint, start without the gateway.

Upstream README & Documentation

This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.

Maintaining twinnydotdev/twinny? Pin to Homepage + competitor /alternatives pages with a custom Cloud/Demo CTA.Feature twinnydotdev/twinny on Homepage & Alternatives ($19)
WEEKLY BREAKOUT DIGEST

Top 10 Breakout Open-Source AI Repos, Every Thursday

Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.

Zero spam · 1-click unsubscribe · Privacy Policy

Saved in your browser · Export Markdown RFC tables or jump into /vs compare