---
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";
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";
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.
- Native TUI: A native terminal UI for a smoother, snappier experience.
- LSP enabled: Loads the right LSPs for your codebase. Helps the LLM make fewer mistakes.
- Multi-session: Start multiple conversations in a project to have agents working in parallel.
- Use any model: Supports all the models from OpenAI, Anthropic, Google, OpenRouter, and more.
- Change tracking: View the file changes from the current conversation in the sidebar.
- Edit with Vim: Use Vim as an external editor to compose longer messages.