Skip to main content
Set up everything the ADK needs in one command: authentication, an optional account API key, shell completion, AI agent skills, and a project. Each step is skipped automatically if it is already done, so poly setup is safe to re-run at any time. Examples:
The five steps, in order:
  1. Authentication — runs the browser sign-in flow and saves an ADK key, as poly login does. Skipped if credentials already exist.
  2. Account API key (optional) — asks whether to set up an account API key for the PolyAI APIs, and if you say yes runs poly apikey, which creates the key and exports POLY_API_KEY to your shell profile. It reuses the sign-in from step 1, so there is no second browser trip. The ADK itself does not need this key. Skipped when POLY_API_KEY is already in your profile, with --skip-auth, or when there is no terminal to ask; run poly apikey yourself in that case.
  3. Shell completion — installs tab completion for your shell. For bash and zsh this appends an eval "$(poly completion <shell>)" line to your rc file; for fish it writes ~/.config/fish/completions/poly.fish. Skipped if already configured. See poly completion for the manual route.
  4. AI agent skills — installs the ADK skills into coding agents detected on your machine (Claude Code, Cursor, Codex, and others) via the npx skills package. Skipped with a warning if Node.js 18+ is not available — a missing Node never fails setup.
  5. Project — offers to create a new Agent Studio project or connect an existing one, as poly project create and poly init do. Skipped if the directory already contains a project.
The skills step needs Node.js 18+Skill installation shells out to npx, which requires Node.js 18 or newer. Without it, the step is skipped with a warning and the rest of setup completes normally — install Node and re-run poly setup to add the skills later.
Anonymous usage telemetrypoly setup sends anonymous usage telemetry. Set POLY_NO_TELEMETRY=1 or DO_NOT_TRACK=1 to turn it off.
Re-run after anything changesBecause every step checks whether it is already done, poly setup doubles as a repair command — re-run it after installing Node, switching shells, or clearing credentials, and only the missing pieces are redone.
  • Tooling — the coding-agent integrations the skills step installs into
Last modified on November 27, 2026