Skip to content

@witqq/agent-sdk

One SDK, four AI backends. Type-safe tools, streaming events, and React UI components.

Multi-Backend

Switch between Copilot CLI (GitHub), Claude CLI (Anthropic), Vercel AI SDK, and Mock LLM for testing. Same interface everywhere.

Type-Safe Tools

Define tools with Zod schemas. Permission scoping (once, session, project, always). Supervisor hooks for approval workflows.

Streaming Events

15 typed event types via AsyncIterable. Text deltas, thinking, tool calls, permissions, usage tracking. Custom middleware pipeline.

Testing Built In

Mock LLM backend with deterministic response modes. Mock factories for services, runtimes, and React components. No API keys needed.

Terminal window
npm install @witqq/agent-sdk
FeatureCopilot CLIClaude CLIVercel AIMock LLM
AuthGitHub OAuthAnthropic OAuthAPI keyNone
StreamingYesYesYesYes
Tool callsYesYesYesSimulated
Structured outputYesYesYesConfigurable
Requires CLIYesYesNoNo
CostCopilot subscriptionPay-per-usePay-per-useFree