You’ll find quick answers here to the questions that come up most often — from choosing betweenDocumentation Index
Fetch the complete documentation index at: https://docs.trykode.xyz/llms.txt
Use this file to discover all available pages before exploring further.
kode run and kode loop, to configuring a local LLM, to understanding what happens when the TUI won’t start. If you don’t find what you need, check the audit log (logs/kode.log) and the Gate Failures guide for deeper diagnostics.
What's the difference between kode run and kode loop?
What's the difference between kode run and kode loop?
kode run generates a patch, runs it through the verification gate, and applies it to your filesystem in one shot — but it stops there. It does not execute your test suite.kode loop does everything kode run does, and then runs your configured test command. If the tests pass, the changes are kept. If the tests fail, Kode automatically rolls back all applied changes atomically using a pre-loop snapshot, and your working tree is restored to its original state.Use kode run when you want to review and test manually. Use kode loop when you want full automation and have a reliable test suite.Can I use Kode with a local LLM (Ollama, LM Studio)?
Can I use Kode with a local LLM (Ollama, LM Studio)?
/v1/chat/completions endpoint will work.Set two environment variables before running any kode command:http://localhost:1234/v1. You do not need an API key for purely local servers, but if your server requires one, set KODE_LLM_API_KEY as well.Run kode models to verify Kode can reach the endpoint and list available models.How do I add a custom AI provider?
How do I add a custom AI provider?
kode providers login to walk through a provider selection wizard. Kode will prompt you for the provider name, endpoint, and API key, and write the result to .kode/kode.json.Manual configuration: Open .kode/kode.json and set the model field to the provider’s model string (e.g., "anthropic/claude-opus-4-5"). Then set the corresponding API key environment variable for that provider. Run kode models to see the full list of recognized model strings and their required environment variables.If you want to use a provider not listed by kode models, you can point Kode at any OpenAI-compatible endpoint using KODE_LLM_ENDPOINT and KODE_LLM_MODEL.What is the Kode Gateway?
What is the Kode Gateway?
https://api.trykode.xyz. It is the default provider when you first install Kode.The Gateway routes your requests to multiple upstream model providers — OpenAI, Anthropic, DeepSeek, Google, and OpenRouter — and handles authentication, rate limiting, and fallback on your behalf. This means you can switch models in .kode/kode.json without managing separate API keys for each provider.If you prefer to call a provider directly (for cost, latency, or compliance reasons), set KODE_LLM_ENDPOINT to the provider’s native API URL and KODE_LLM_API_KEY to your direct API key. Kode will bypass the Gateway entirely.Why is Kode blocking my code with a Blast Radius failure?
Why is Kode blocking my code with a Blast Radius failure?
max_blast_radius, the write is blocked.You have two options:-
Increase the threshold for large, intentional refactors. In
.kode/kode.json: - Break the change into smaller pieces. Modify only the internal implementation without touching the exported API, then update callers in separate tasks. This is the safer approach and keeps each change reviewable.
Does Kode support Python and Rust?
Does Kode support Python and Rust?
.rs files entirely on the assumption that cargo check will catch resolution errors downstream.Go and TypeScript have the deepest static analysis support (full AST parsing for Go, node_modules resolution for TypeScript).How does Blindfold Mode affect output quality?
How does Blindfold Mode affect output quality?
.kode/kode.json.Can I use Kode in CI/CD without interactive prompts?
Can I use Kode in CI/CD without interactive prompts?
jq or a log aggregator. Use --log-dir to control where kode.log is written:logs/kode.log as a CI artifact.Where are audit logs stored?
Where are audit logs stored?
logs/kode.log in your project’s working directory. The file uses JSONL format — one JSON object per line.Each entry contains:kode stats. To change the log location, pass --log-dir <path> to any kode verify or kode loop command.You can query the log directly with jq:How do I integrate Kode with Claude Desktop?
How do I integrate Kode with Claude Desktop?
claude_desktop_config.json):What happens if tests fail during kode loop?
What happens if tests fail during kode loop?
- Marks the loop run as failed
- Atomically rolls back all files it modified to their pre-loop state using the snapshot
- Reports which test(s) failed and what the test output was
logs/kode.log with the test output attached.To retry, fix the underlying issue (either by adjusting your prompt or by modifying configuration) and run kode loop again. Kode will start fresh from the current file state.How do I update Kode to the latest version?
How do I update Kode to the latest version?
kode --version to confirm the new version is active. If you have the TUI bundle cached locally (in KODE_TUI_DIR), delete it to force a re-download of the matching TUI version.The TUI won't start — what do I do?
The TUI won't start — what do I do?
github.com. If you’re behind a proxy, configure it with standard HTTP_PROXY / HTTPS_PROXY environment variables.Override the bundle URL. If GitHub Releases is blocked or slow in your region, set an alternative:kode upgrade, the cached TUI bundle may be incompatible. Delete the bundle directory (default: ~/.kode/tui/) and let Kode re-download it.All other kode commands (run, loop, verify, stats, explain) work fully without the TUI.Can I use Kode on Windows?
Can I use Kode on Windows?
kode --version to confirm. All commands and flags work the same on Windows. File paths in configuration and prompts should use forward slashes or escaped backslashes.