A chat
Holds the conversation. Send a second message to the same chat and the agent
keeps everything it already learned.
A workspace
The files it reads and writes, and the sandbox it runs commands in. Without
one the agent can only talk.
A model
Picked per run with
model. Defaults to your organization’s setting.The shape of the API
What an agent can do
An agent’s abilities come from four layers, and each is something you control.
The same tool surface is available three ways, so pick whichever fits where you already are:
Choosing how much rope to give it
Every run takes optional limits, and they matter more for unattended work than for interactive chat.Who the agent acts as
A run inherits the access of the credential that started it. A user-owned API key acts as you; a service-account key acts as the service account and sees only what that account was granted. For unattended work, give a service account its own workspace access rather than reusing a personal key - see Unattended runs.Next
Agent runs
Start, watch, steer, and stop a run.
Skills and subagents
Teach a workspace how you want recurring work done.
Unattended runs
Service accounts, automations, and telling a human when it is done.
Quickstart
The whole loop in curl, from an empty workspace to a downloaded artifact.