Skip to content

Installation

The PolyAI ADK can be installed as a Python package.

Install the ADK

We recommend installing in a virtual environment rather than installing to the global system Python. If you don't have uv installed, see the uv installation guide.

Run the following to create a virtual environment:

uv venv --python=3.14 --seed

Suppress SyntaxWarnings from platform-generated code

Platform-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:

export PYTHONWARNINGS=ignore

Activate the virtual environment:

source .venv/bin/activate

Install the package with pip:

pip install polyai-adk

Optional — install the VS Code / Cursor extension

If you plan to work in VS Code or Cursor, you can also install the PolyAI ADK extension for resource-aware editing on top of the CLI. The extension is additive — the poly command remains the source of truth for every workflow.

Generate API key

Log in to Agent Studio and open your workspace. In the API Keys tab (next to the Users tab), click + API key in the top right to generate a key.

Generating an API key in Agent Studio — API Keys tab with the + API key button highlighted

Then set it as an environment variable:

export POLY_ADK_KEY=<your-api-key>

The POLY_ADK_KEY environment variable must be set before running any poly commands. To make it permanent, add the export line to your shell profile (for example, ~/.zshrc or ~/.bashrc).

Once the ADK is installed and your API key is set, you can use the poly command to interact with Agent Studio projects locally.

Verify the installation

Confirm the CLI is available:

poly --help

You should see the top-level command help if installation succeeded.

Next step

With the ADK installed and your API key set, run poly init to create your local project and get familiar with the CLI.

  • First commands


    Start with poly init, then learn the rest of the core ADK commands. Open first commands