@xemahq/opencode-client
v0.3.2
Published
<p align="center"> <svg width="680" height="120" viewBox="0 0 680 120" fill="none" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="@xemahq/opencode-client"> <rect width="680" height="120" rx="14" fill="#0B1020"/> <g transform="translate(28,3
Readme
@xemahq/opencode-client
NestJS module for invoking OpenCode agents
Overview
A NestJS module and service for direct LLM invocation through OpenCode, plus the supporting agent registry and MCP tool-catalog types. It provides a typed direct-LLM façade with tool execution, an in-process agent registry with a markdown loader, and the catalog type names that biome content validates against. Agent and catalog data live in biome content; this package supplies the mechanics and contracts to consume them.
When to use it
- Use it in a NestJS service that needs to invoke OpenCode agents directly and resolve agent definitions from an in-process registry.
Installation
pnpm add @xemahq/opencode-clientUsage
import { OpenCodeModule, OpenCodeService } from '@xemahq/opencode-client';
@Module({ imports: [OpenCodeModule.forRoot(options)] })
export class AppModule {}
// Then inject OpenCodeService to run a direct-LLM invocation.Peer requirements
@nestjs/common>= 11@nestjs/config>= 4
License
Apache-2.0 © Xema — xema.dev
