poly start (self-serve) or poly login (enterprise), described below.
Step 1 — Install the ADK
You need uv to manage the Python environment. If you already have it, skip the first line.Suppress SyntaxWarnings from platform-generated codePlatform-generated code uses regex patterns (such as
\d) that trigger SyntaxWarning in Python 3.14’s stricter string handling. This produces 40+ warning lines on every poly command and obscures normal output.To suppress them, set this before running any poly command:Step 2 — Sign in and set up your API key
The right setup path depends on the type of Agent Studio account you have:- Self-serve accounts (signed up at studio.poly.ai) — use
poly startfor an end-to-end setup that creates an account, an API key, and an optional first project. - Enterprise accounts (a workspace provisioned by PolyAI on a regional cluster such as
us-1,euw-1, oruk-1) — usepoly login --region <region>to sign in through your browser, or create an API key in the Agent Studio UI and export it manually.poly startis self-serve only and does not work against enterprise clusters.
Self-serve accounts — poly start
poly start handles everything you need to authenticate:
- Sign up or sign in — opens a browser window for authentication. This can be on any device, not just the machine running the CLI.
- API key — generates a key and saves it to
~/.poly/credentials.json. Futurepolycommands pick it up automatically — no environment variables to manage. - Create a project — optionally creates a new Agent Studio project and pulls it down locally so you can start editing immediately.
Enterprise accounts — poly login or manual API key
Enterprise workspaces have two options. poly login is the quickest path for most users; the manual export is the fallback if you can’t authenticate through the browser (for example, on a CI runner).
Option 1 — poly login (recommended)
poly login:
- Opens a browser window so you can sign in to your enterprise workspace.
- Fetches (or creates) an API key for your user.
- Saves it to
~/.poly/credentials.jsonunder the region you specified, so futurepolycommands pick it up automatically.
--region, the CLI prompts you to pick one. To sign in to more than one region from the same machine, re-run poly login with each region — the credential file stores them side by side.
Option 2 — Manual API key export
If you’d rather create the key yourself in the Agent Studio UI:- Log in to Agent Studio for your region and open your workspace.
- In the API Keys tab (next to the Users tab), click + API key.

~/.zshrc or ~/.bashrc). If you work across more than one region, use the region-scoped variables in per-region API keys below.
How the ADK resolves API keysThe ADK checks for credentials in the following order:
- Credential file —
~/.poly/credentials.json(written bypoly startorpoly login) - Region-specific env var — e.g.
POLY_ADK_KEY_US - General env var —
POLY_ADK_KEY
Step 3 — Start building
Ifpoly start created a project for you, cd into the project directory. Otherwise, connect to an existing project:
poly init walks you through interactive dropdowns to pick a region, account, and project, then pulls the configuration locally.
From inside your project directory, the core workflow is:
Build an agent with the ADK
Follow the full step-by-step tutorial for local development.
First commands
Explore the full set of CLI commands available to you.
Seed an agent from your website
If you’re starting from scratch and want a working baseline, you can generate an agent from your company website inside Agent Studio. This gives you topics and agent settings pre-populated from your site’s public content — a useful starting point before building locally.- Open Agent Studio for self-serve, or your region’s URL for enterprise, and sign in with the same account you authenticated with above.
- Click + Agent → Quick Agent Setup.
- Enter your website URL and click Create agent.

Already have an agent in Agent Studio?
If you have an existing project — built in the browser, by a PolyAI team, or by any other method — connect it to the ADK withpoly init once your API key is set up:
poly init creates a local directory and pulls the full project configuration. From there the standard poly status / poly push / poly pull workflow applies.
Per-region API keys
If you work across multiple regions, you can set region-scoped environment variables. The ADK checks the credential file first, then region-scoped env vars, thenPOLY_ADK_KEY.
Next step
What is the ADK?
Understand what the ADK does and how it fits into Agent Studio.

