Start with a working agent
The quickstart takes you from an empty directory to a running agent using Node.js and a provider API key.OPENAI_API_KEY from your environment and disables tools for its first text-only response. The quickstart includes installation, credentials, the run command, and expected output.
What you can build
Choose an entry point
Start withAgent. It holds reusable configuration; agent.run() completes one task, and await agent.createSession() creates a conversation. Use query() when you want one streamed task without managing an Agent object. Use createAgentClient() when your application needs direct ownership of the runtime and its sessions.
All three use the same runtime. Local execution starts with isolated configuration and state by default. There is no isolation flag to enable. See runtime defaults when you need custom credentials, persistent state, or host configuration.