Qoder Agent SDK lets you call Qoder AI capabilities from TypeScript — read/write files, search code, execute commands, and more — embedding an AI Agent into your application or script with just a few lines of code.Documentation Index
Fetch the complete documentation index at: https://docs.qoder.com/llms.txt
Use this file to discover all available pages before exploring further.
Prerequisites
- Node.js 18+
Install
Authentication
The SDK authenticates via a Personal Access Token (PAT), ideal for scripts, CI pipelines, and third-party integration scenarios. Generate a PAT at qoder.com/account/integrations (copy it immediately — the value cannot be retrieved again after the page is closed). For full steps, custom environment variables, and reusing localqodercli credentials, see SDK Authentication.
Once you have a PAT, set the environment variable first:
accessTokenFromEnv():
env option; if options.env is explicitly provided, the SDK reads the same-named variable from it first.
Security Note: Do not hard-code PATs in your code repository. Inject them via environment variables or a secrets management service.
Example
Createagent.mjs:
Next Steps
- SDK Authentication — PAT, environment variables, and auth error handling
- Multi-turn Conversation — Multi-message session, managing the session lifecycle
- Streaming Output — Receive incremental content in real time, typewriter effect
- SDK References — Complete SDK reference