--- 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 Screenshot from "../assets/themes/tokyonight.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 command = "npm i -g"; const pkg = "opencode-ai"; 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.

opencode TUI with the tokyonight theme

opencode TUI with the tokyonight theme