AI-assisted code development in the terminal

Gokin is an open source CLI tool for AI-assisted development in Go. Multi-agent architecture, 7 providers (including free and local), 54 tools, task planning, and persistent memory.


Key Features#

  • Multi-provider — Gemini, Anthropic (Claude), DeepSeek, GLM, MiniMax, Kimi, Ollama
  • Multi-agent — 5 agent types with delegation, tree planning, and shared memory
  • Open Source — 100% Go, ~100K LOC, MIT
  • Offline — full functionality via Ollama without internet or API keys
  • Security — 3-level permission system, bash sandbox, audit logging
  • Persistent memory — session, project, global; learns from projects

Comparison#

FeatureGokinClaude CodeCursor
Open SourceYesNoNo
Providers7 (Gemini, Claude, DeepSeek, GLM, MiniMax, Kimi, Ollama)1 (Claude)1 (OpenAI/Anthropic)
Local modelsYes (Ollama)NoNo
Free tierGemini Free / OllamaNoLimited
Multi-agents5 types + customLimitedNo
Tree PlanningBeam / MCTS / A*NoNo
TUIBubble TeaNoIDE
Semantic searchYes (embeddings)NoYes
MCPYesYesNo
InterfaceTerminalTerminalIDE

Pricing#

TierProviderCost
FreeOllama (local models)$0
FreeGemini (Free Tier / OAuth)$0
Pay-per-useGemini APIfrom $0.50/1M tokens
Pay-per-useDeepSeekfrom $0.14/1M tokens
Pay-per-useGLMper Z.ai pricing
Pay-per-useMiniMaxper MiniMax pricing
Pay-per-useKimiper Moonshot pricing
Pay-per-useAnthropicfrom $3/1M tokens

Quick Start#

# Install from source
go install github.com/ginkida/gokin/cmd/gokin@latest

# Or build locally
git clone https://github.com/ginkida/gokin.git
cd gokin
go build -o gokin ./cmd/gokin

# Initial setup (choose provider and API key)
./gokin --setup

# Run
./gokin

After running --setup, Gokin will prompt you to choose a provider and enter an API key. For key-free operation, choose Ollama.


Documentation#

SectionDescription
InstallationBuild, update, rollback
Providers7 providers, models, key setup
Tools54 tools by category
Commands35+ slash commands, keyboard shortcuts
AgentsMulti-agent system, delegation
PlanningPlan lifecycle, parallel steps
Configuration22+ config.yaml sections
SecurityPermissions, sandbox, audit
MemoryMemory types, context, summarization
User InterfaceThemes, command palette, rendering
AdvancedMCP, router, hooks, circuit breaker
DevelopmentArchitecture, patterns, contributing

System Requirements#

  • Go 1.25+ (to build from source)
  • macOS / Linux / Windows
  • Terminal with Unicode support

License#

MIT

GitHub MIT License © Gokin Contributors