What is Twinny?
Twinny is a free, open-source VS Code extension for code completion and chat. It speaks the OpenAI chat-completions spec against any host, so one Tokonomix key serves both completion and chat across 130+ models.
- Adds AI code completion and a chat panel inside VS Code.
- Providers are configured by Hostname, Port, Protocol, API Path and key — provider type
openai. - Point the chat-completions API Path at
/api/v1/chat/completions. - Open source; manage providers from the Twinny panel.
Why route Twinny through Tokonomix?
- One key, 130+ models behind Twinny’s completion and chat.
- Set the model to
tokonomix-consensusfor a cross-model check before you trust a suggestion; a direct slug for fast completion. - Per-call spend caps bound usage; region / origin routing keeps repo data compliant.
- Cost is metered to the cent in your Tokonomix dashboard.
Connect Tokonomix to Twinny
In Twinny’s Manage Providers, add a provider of type openai and fill in the host, path, key and model.
// Twinny -> Manage Providers -> add provider:
// Provider type: openai
// Hostname: tokonomix.ai
// Port: 443
// Protocol: https
// API Path: /api/v1/chat/completions
// API Key: tok_live_your-key
// Model Name: tokonomix-consensusVerify it works
- Add the provider in Twinny’s Manage Providers panel and select it.
- Ask a question in the chat panel or trigger a completion.
- Confirm the call and token usage in your Tokonomix dashboard.