Source: opencode
Section: utils
Priority: optional
Maintainer: Parrot Security <team@parrotsec.org>
Build-Depends: debhelper-compat (= 13), curl, ca-certificates, unzip
Standards-Version: 4.7.2
Rules-Requires-Root: no
Homepage: https://opencode.ai
Vcs-Browser: https://github.com/anomalyco/opencode
Vcs-Git: https://github.com/anomalyco/opencode.git

Package: opencode
Architecture: amd64 arm64
Depends: ${misc:Depends}, ${shlibs:Depends}, xdg-utils
Suggests: git
Description: open source AI coding agent for the terminal
 opencode is an open-source AI coding agent. It provides an interactive
 terminal UI (TUI), a headless server, and a scriptable CLI that can read,
 edit and run code, manage sessions, and talk to many LLM providers
 (OpenAI, Anthropic, Google, Bedrock, OpenRouter, ...).
 .
 The program is built with the Bun toolchain and is shipped as a
 self-contained compiled binary (the Bun runtime and all JavaScript
 dependencies are embedded), so it has no Node.js runtime dependency.
 .
 The interactive terminal UI and all other commands remain available by
 running `opencode` from a terminal, and `opencode serve` (the `web`
 command was renamed upstream) runs the local API and web server,
 printing its URL. On amd64 the package includes the embedded web UI and
 an OpenCode Web desktop launcher (`opencode-web`) that starts the
 server, prints the complete login (the username is always "opencode";
 the session password is generated at startup) and opens the web UI in
 the default browser automatically. On arm64 the web UI is omitted
 because its large build stalls on the current arm64 build workers; the
 web launcher is not installed there, and the terminal UI, the CLI and
 the API server are fully functional on both architectures.
 .
 Build note: opencode is built from source with Bun (not packaged in
 Debian). The Bun toolchain, the npm dependencies (pinned by the upstream
 bun.lock) and the models.dev provider catalog snapshot (upstream ships it
 as a committed file; the build refreshes it best-effort) are fetched from
 the network at build time, so the build requires a network-enabled build
 worker and will not run on an offline buildd. The program also refreshes
 the catalog live at runtime, so users on networked machines always see
 the current model list.
