--- import { Image } from 'astro:assets'; import config from "virtual:starlight/user-config"; import type { Props } from '@astrojs/starlight/props'; import CopyIcon from "../assets/lander/copy.svg"; import CheckIcon from "../assets/lander/check.svg"; import TuiScreenshot from "../assets/lander/screenshot-splash.png"; import VscodeScreenshot from "../assets/lander/screenshot-vscode.png"; import GithubScreenshot from "../assets/lander/screenshot-github.png"; const { data } = Astro.locals.starlightRoute.entry; const { title = data.title, tagline, image, actions = [] } = data.hero || {}; const imageAttrs = { loading: 'eager' as const, decoding: 'async' as const, width: 400, alt: image?.alt || '', }; const github = config.social.filter(s => s.icon === 'github')[0]; const discord = config.social.filter(s => s.icon === 'discord')[0]; const command = "curl -fsSL" const protocol = "https://" const url = "opencode.ai/install" const bash = "| bash" let darkImage: ImageMetadata | undefined; let lightImage: ImageMetadata | undefined; let rawHtml: string | undefined; if (image) { if ('file' in image) { darkImage = image.file; } else if ('dark' in image) { darkImage = image.dark; lightImage = image.light; } else { rawHtml = image.html; } } ---

The AI coding agent built for the terminal.

npm

Bun

Homebrew

Paru

opencode TUI with the tokyonight theme
opencode TUI with the tokyonight theme
opencode in VS Code
opencode in VS Code
opencode in GitHub
opencode in GitHub