import "./index.css" import { Title, Meta, Link } from "@solidjs/meta" import { A, createAsync, query } from "@solidjs/router" import { Header } from "~/component/header" import { Footer } from "~/component/footer" import { IconCopy, IconCheck } from "~/component/icon" import { Faq } from "~/component/faq" import desktopAppIcon from "../../asset/lander/opencode-desktop-icon.png" import { Legal } from "~/component/legal" import { config } from "~/config" import { createSignal, onMount, Show, JSX } from "solid-js" import { DownloadPlatform } from "./types" type OS = "macOS" | "Windows" | "Linux" | null function detectOS(): OS { if (typeof navigator === "undefined") return null const platform = navigator.platform.toLowerCase() const userAgent = navigator.userAgent.toLowerCase() if (platform.includes("mac") || userAgent.includes("mac")) return "macOS" if (platform.includes("win") || userAgent.includes("win")) return "Windows" if (platform.includes("linux") || userAgent.includes("linux")) return "Linux" return null } function getDownloadPlatform(os: OS): DownloadPlatform { switch (os) { case "macOS": return "darwin-aarch64-dmg" case "Windows": return "windows-x64-nsis" case "Linux": return "linux-x64-deb" default: return "darwin-aarch64-dmg" } } function getDownloadHref(platform: DownloadPlatform) { return `/download/${platform}` } function IconDownload(props: JSX.SvgSVGAttributes) { return ( ) } function CopyStatus() { return ( ) } export default function Download() { const [detectedOS, setDetectedOS] = createSignal(null) onMount(() => { setDetectedOS(detectOS()) }) const handleCopyClick = (command: string) => (event: Event) => { const button = event.currentTarget as HTMLButtonElement navigator.clipboard.writeText(command) button.setAttribute("data-copied", "") setTimeout(() => { button.removeAttribute("data-copied") }, 1500) } return (
OpenCode | Download
OpenCode Desktop

Download OpenCode

Available in Beta for macOS, Windows, and Linux

Download for {detectedOS()}
[1] OpenCode Terminal
[2] OpenCode Desktop (Beta)
macOS (Apple Silicon)
Download
macOS (Intel)
Download
Windows (x64)
Download
Linux (.deb)
Download
Linux (.rpm)
Download
{/* Disabled temporarily as it doesn't work */} {/*
Linux (.AppImage)
Download
*/}
[3] OpenCode Extensions
VS Code
Install
Cursor
Install
Windsurf
Install
VSCodium
Install
[4] OpenCode Integrations
GitHub
Install
GitLab
Install

FAQ

  • OpenCode is an open source agent that helps you write and run code with any AI model. It's available as a terminal-based interface, desktop app, or IDE extension.
  • The easiest way to get started is to read the intro.
  • Not necessarily, but probably. You'll need an AI subscription if you want to connect OpenCode to a paid provider, although you can work with{" "} local models {" "} for free. While we encourage users to use Zen, OpenCode works with all popular providers such as OpenAI, Anthropic, xAI etc.
  • Not anymore! OpenCode is now available as an app for your desktop.
  • OpenCode is 100% free to use. Any additional costs will come from your subscription to a model provider. While OpenCode works with any model provider, we recommend using Zen.
  • Your data and information is only stored when you create sharable links in OpenCode. Learn more about{" "} share pages.
  • Yes, OpenCode is fully open source. The source code is public on{" "} GitHub {" "} under the{" "} MIT License , meaning anyone can use, modify, or contribute to its development. Anyone from the community can file issues, submit pull requests, and extend functionality.
) }