Gokin CLI
A terminal coding agent in Go: GLM, DeepSeek and local Ollama models, 59 built-in tools and MCP
- 110 ★ on the repository
- Last commit
Broad access
Why this level
- The agent edits files, runs shell commands and works with git
- bypassPermissions mode disables confirmation prompts, and provider keys are kept in settings
Install
Manual install
curl -fsSL https://raw.githubusercontent.com/ginkida/gokin/main/install.sh | shThe one-line installer from the README. Read the script before you run it.
Access and checks
How we reviewBroad accessThe tool can change data, run commands or handle secrets.
- The agent edits files, runs shell commands and works with git
- bypassPermissions mode disables confirmation prompts, and provider keys are kept in settings
This is third-party code. Review the repository files before installing.
What it does
Gokin runs in the terminal and takes over coding tasks: it explains a project, edits files, runs tests and prepares commits and pull requests. The model connects directly to the provider you choose, with no intermediaries. GLM on the Coding Plan is the default, and DeepSeek and Ollama are supported, the latter for fully local work without keys. The README lists 59 built-in tools and MCP support, up to five parallel agents with shared memory, pluggable skills, hooks and plugins. Secrets are redacted before reaching the model, connections use TLS 1.2 or newer, and permissions come in three levels. Permission modes include plan, acceptEdits, dontAsk and bypassPermissions. For scripts and CI there is a headless mode: the -p or --headless flag, stdin input, json or stream-json output. You can restrict the agent with the --tools, --allowedTools and --disallowedTools lists and the --max-turns, --timeout and --max-budget-usd limits. The --json-schema flag validates the final answer against a schema and returns it in the structured_output field, and --bare mode leaves only Read, Edit and Bash.
Who it is for. Developers who want a terminal agent with a choice of provider, including a local model, and who run it in CI.
Good fit when
- You want a terminal coding agent that works with GLM, DeepSeek or a local model through Ollama
- Code must not pass through third-party proxies: requests go straight to the provider you chose
- You need a one-off CI run with limits on steps, time and budget and a json answer
- You want to attach your own MCP servers, skills and hooks to an agent that is not tied to a single vendor
Not a fit when
- You need Claude or GPT models: the README names GLM, DeepSeek and Ollama as providers
- You need a graphical interface, not a terminal one: Gokin works in a TUI and on the command line
- The project cannot allow an agent to run commands: bypassPermissions mode disables confirmation prompts
Example request
Run the internal/app package tests, find the cause of the failure and propose a fix; do not commit yet.Limitations
Work requires a GLM or DeepSeek key or a local Ollama. Building from source needs Go 1.25 or newer. The README installs through a script fetched with curl, and its content is worth reading before you run it. The README notes that automated tests check protocol handling, while model availability and limits depend on your account. Working with Go symbols optionally needs a recent gopls with MCP support.
How to disable. Delete the gokin binary and the user settings directory. Keys from the GOKIN_GLM_KEY and GOKIN_DEEPSEEK_KEY environment variables apply only to the process. Keys saved with /login live in the configuration, so delete them with it.
FAQ
How do I install Gokin?
The main route from the README is curl -fsSL https://raw.githubusercontent.com/ginkida/gokin/main/install.sh | sh. The second is to clone the repository and run go build -o gokin ./cmd/gokin, which needs Go 1.25 or newer. After installing, run gokin --setup.
Which models does Gokin support?
Three providers are supported: GLM by default, DeepSeek through Anthropic-compatible APIs and local Ollama. Keys are set with GOKIN_GLM_KEY and GOKIN_DEEPSEEK_KEY, and Ollama needs no key.
Can I run Gokin in CI?
Yes. The -p or --headless flag runs one request without the interface, --output-format json returns the result, and --max-turns, --timeout and --max-budget-usd cap the work.
How does Gokin differ from Claude Code?
Gokin is open source, not tied to one vendor and works with GLM, DeepSeek and Ollama. In the README comparison table Gokin has 59 tools and up to five parallel agents with shared memory.
Does Gokin send secrets to the model?
Per the README, secrets and credentials are redacted before they reach the model, and there is no telemetry. Requests go straight to the provider you chose.
Discussion
No questions or reviews yet.
Related
CLI toolsA Python terminal coding agent in the manner of Claude Code: reads the repository, edits files, runs commands, with memory, sub-agents and MCP
A coding agent with a Python core and three front-ends: a script CLI, a terminal TUI and an Electron app, for OpenAI-style APIs
Terminal coding agent with a short system prompt, twelve providers and switching models in mid-conversation
A terminal coding agent in a single Go binary for DeepSeek and other OpenAI-compatible models, with a code graph and local OCR
Gajae-Code is a terminal coding harness that logs into a coding plan you already pay for and plans changes before mutating code.
A coding agent for the terminal, browser and CI across 38 model providers, with cross-session memory, MCP, skills and hooks.
Comparison with similar tools
Cards that share the main search query, and how they differ.
README in short
The documentation compares Gokin with closed tools on price, providers, offline work and security. Next come stack options, installation, a quick start, automation and CI, providers and configuration. The examples section shows headless runs with various permission limits.