{"schemaVersion":1,"id":"avc-85-opencode","name":"OpenCode","locale":"en","canonicalUrl":"https://base.akulich.dev/en/library/avc-85-opencode/","officialUrl":"https://opencode.ai/","isCatalog":false,"description":"OpenCode is an open-source terminal coding agent supporting multiple sessions, LSP, and different model providers. Work in a local repository and choose inference independently of the interface.","tasks":["Develop a project in the terminal with multiple sessions","Connect your own cloud or local model"],"categoryIds":["ai","integrations","software"],"subcategoryIds":["ai.cli","ai.orchestration","integrations.management","software.cli"],"tags":["LSP"],"aliases":[],"platforms":[],"stack":[],"compatibility":null,"pricing":"free","freeUsage":"OpenCode code is free under MIT. Choose your own cloud or local provider and check its terms and costs separately. Zen also lists free models, some for a limited time; this does not promise every model is free.","paidUsage":"Zen is an optional pay-as-you-go gateway with per-request billing; Go is a separate $10/month subscription, and Go Plus is $40/month, with model-specific limits. Your own APIs are paid to the provider, while local use consumes your infrastructure. This does not change the agent code's free availability.","license":"MIT for OpenCode code: use, modification, and distribution are permitted with copyright and permission notices retained. Code is provided without warranties; model services have separate terms.","selectionGuide":{"purpose":"Develop a project in the terminal with multiple sessions","chooseWhen":["Develop a project in the terminal with multiple sessions","Connect your own cloud or local model"],"considerInstead":["When choosing for this topic, compare OpenCode with Gemini CLI. A candidate to compare under the topic: Terminal agents, Connection management. This is an editorial connection by topic, not a confirmed alternative or a guarantee that the products work together.","When choosing for this topic, compare OpenCode with OpenAI Codex CLI. A candidate to compare under the topic: Terminal agents, Connection management. This is an editorial connection by topic, not a confirmed alternative or a guarantee that the products work together."],"requirements":["TUI requires a modern terminal emulator and configured access to the selected model. Windows options include NPM/Chocolatey/Scoop/Mise and ready-made binaries; WSL is recommended for compatibility. The specific runtime depends on the installation method."],"limitations":["Costs and limits of free use: Zen is an optional pay-as-you-go gateway with per-request billing; Go is a separate $10/month subscription, and Go Plus is $40/month, with model-specific limits. Your own APIs are paid to the provider, while local use consumes your infrastructure. This does not change the agent code's free availability.","Terms of use: MIT for OpenCode code: use, modification, and distribution are permitted with copyright and permission notices retained. Code is provided without warranties; model services have separate terms.","A standalone agent, not a Codex plugin."],"faq":[{"question":"What can you use for free in OpenCode?","answer":"OpenCode code is free under MIT. Choose your own cloud or local provider and check its terms and costs separately. Zen also lists free models, some for a limited time; this does not promise every model is free."},{"question":"What additional costs might arise with OpenCode?","answer":"Zen is an optional pay-as-you-go gateway with per-request billing; Go is a separate $10/month subscription, and Go Plus is $40/month, with model-specific limits. Your own APIs are paid to the provider, while local use consumes your infrastructure. This does not change the agent code's free availability."},{"question":"What terms of use matter for OpenCode?","answer":"MIT for OpenCode code: use, modification, and distribution are permitted with copyright and permission notices retained. Code is provided without warranties; model services have separate terms."},{"question":"How do you get started with OpenCode?","answer":"For the task “Develop a project in the terminal with multiple sessions,” open the required project and let the agent examine the affected implementation before editing. A possible sequence: first /init for AGENTS.md and Plan mode to discuss a solution, then Build mode after checking the plan. Assign a bounded task with a completion criterion; review the proposed changes and how they address the requirement. Run an appropriate project check and compare behavior before and after the change."},{"question":"What should you consider when choosing OpenCode?","answer":"NPM/Chocolatey/Scoop options are officially available for Windows; WSL is recommended for better compatibility. Bun support on Windows is still in progress."},{"question":"How can multiple solutions be compared in OpenCode?","answer":"The official page describes multiple concurrent sessions in one project and links for sharing sessions. Models can be chosen separately, including custom providers and local models."},{"question":"Which commands and changes require confirmation?","answer":"permission specifies allow, ask, or deny, including command and path patterns; the last matching rule wins. Most permissions default to allow; external_directory and repeated identical calls default to ask; reading .env is prohibited, with an exception for .env.example. --auto approves ask but does not override an explicit deny. These are access settings, not a promise of hardware isolation."},{"question":"Is an OpenCode session link public?","answer":"Yes: /share synchronizes history with the server and creates a link available to anyone who has it. Sharing defaults to manual; share=auto enables automatic publication, and share=disabled disables it. /unshare removes public access and associated data; check history for secrets before publishing."},{"question":"How can Zen spending be limited, and what happens when Go is exhausted?","answer":"Zen supports workspace/member limits, but balance auto-reload can separately charge more than the usage limit: by default, $20 when the balance falls below $5; it can be changed or disabled. Go has limits over 5 hours, a week, and a month that vary by model. With Use balance enabled, requests beyond those limits are charged to the Zen balance; otherwise, a paid fallback is not promised."},{"question":"Do all models have the same data processing rules?","answer":"No: Zen and Go publish separate tables and exceptions by model. Some free/contributor models permit prompts/completions to be used for improvement or training. For a sensitive project, first check the terms of the specific model and sharing; a free model does not imply a uniform data retention policy."}],"related":[{"id":"avc-68-gemini-cli","reason":"A candidate to compare under the topic: Terminal agents, Connection management. This is an editorial connection by topic, not a confirmed alternative or a guarantee that the products work together."},{"id":"avc-67-openai-codex-cli","reason":"A candidate to compare under the topic: Terminal agents, Connection management. This is an editorial connection by topic, not a confirmed alternative or a guarantee that the products work together."},{"id":"avc-60-aider","reason":"A candidate to compare under the topic: Terminal agents, Command line. This is an editorial connection by topic, not a confirmed alternative or a guarantee that the products work together."}],"sources":["https://opencode.ai/","https://opencode.ai/docs/","https://github.com/anomalyco/opencode","https://raw.githubusercontent.com/anomalyco/opencode/HEAD/LICENSE","https://opencode.ai/docs/zen/","https://opencode.ai/docs/go/","https://opencode.ai/docs/permissions/","https://opencode.ai/docs/share/","https://opencode.ai/docs/windows-wsl/"]},"selectionCheckedAt":null,"applicationGuide":{"inputs":["A repository, a description of one change, and a reproducible example of the expected behavior.","Project context: affected files, constraints, and the established validation method."],"steps":["For the task “Develop a project in the terminal with multiple sessions,” open the required project and let the agent examine the affected implementation before editing. A possible sequence: first /init for AGENTS.md and Plan mode to discuss a solution, then Build mode after checking the plan.","Set a bounded task with completion criteria; review the proposed changes and how they address the requirement.","Run the appropriate project checks and compare behavior before and after the change."],"checks":["The change solves the stated task and does not touch unrelated files unnecessarily.","Investigate check failures; review generated code, configuration, and data access permissions."],"goal":"Example workflow with OpenCode: Develop a project in the terminal with multiple sessions."},"sources":["https://opencode.ai/","https://opencode.ai/docs/","https://github.com/anomalyco/opencode","https://raw.githubusercontent.com/anomalyco/opencode/HEAD/LICENSE","https://opencode.ai/docs/zen/","https://opencode.ai/docs/go/","https://opencode.ai/docs/permissions/","https://opencode.ai/docs/share/","https://opencode.ai/docs/windows-wsl/"],"checkedAt":"2026-10-03","reviewScope":"Purpose and published terms were reviewed against the cited primary sources. This product page does not confirm execution or testing in every environment.","relatedIds":["avc-67-openai-codex-cli","avc-59-anthropics-claude-code","avc-68-gemini-cli","avc-60-aider"],"dataVersion":"cbbe7123b47a5ae80983","type":"Tool","kind":"tool","pricingNote":"OpenCode code is free under MIT. Choose your own cloud or local provider and check its terms and costs separately. Zen also lists free models, some for a limited time; this does not promise every model is free. Zen is an optional pay-as-you-go gateway with per-request billing; Go is a separate $10/month subscription, and Go Plus is $40/month, with model-specific limits. Your own APIs are paid to the provider, while local use consumes your infrastructure. This does not change the agent code's free availability.","notes":"Windows NPM/Chocolatey/Scoop options are officially available, with WSL recommended for better compatibility; Bun on Windows is still in progress. A standalone agent, rather than a Codex plugin.","labeledSources":[{"url":"https://opencode.ai/","label":"Official website"},{"url":"https://opencode.ai/docs/","label":"Documentation"},{"url":"https://github.com/anomalyco/opencode","label":"Source code"},{"url":"https://raw.githubusercontent.com/anomalyco/opencode/HEAD/LICENSE","label":"Code license"},{"url":"https://opencode.ai/docs/zen/","label":"Zen models, pricing, and data"},{"url":"https://opencode.ai/docs/go/","label":"Go subscription and limits"},{"url":"https://opencode.ai/docs/permissions/","label":"Tool permissions"},{"url":"https://opencode.ai/docs/share/","label":"Public session links"},{"url":"https://opencode.ai/docs/windows-wsl/","label":"Windows and WSL"}],"licenseGuides":[{"id":"mit","title":"MIT — permissive license","scope":null,"summary":"You can use, modify, distribute, and sell the code, including in a closed-source commercial product. When sharing copies or substantial portions of the code, retain the license text and copyright notice. You do not need to open-source your entire project; the author provides no warranties.","url":"https://opensource.org/license/mit"}],"entryIds":[],"composition":null}