OpenCode AI releases opencode2 API and CLI client
OpenCode AI has launched a new API for its opencode2 platform, designed to be easily queried by both human developers and autonomous AI agents. The release, currently in beta, includes a new CLI client available via NPM that features auto-discovery for local servers and credentials.
Positioning their API specifically for both users and agents shows OpenCode is adapting to the new paradigm where AI tools interact directly with other AI tools.
- –The npm client (@opencode-ai/client) enables quick setup for JavaScript and TypeScript ecosystems.
- –Auto-discovery of locally running servers removes significant configuration friction.
- –The focus on a highly capable API suggests major reliability improvements geared towards programmatic, agentic usage.
DISCOVERED
3h ago
2026-07-13
PUBLISHED
3h ago
2026-07-13
RELEVANCE
AUTHOR
thdxr