Skip to main content

Prerequisites

1. Create and deploy a project

Run the CLI wizard from the directory that will contain your Polpo configuration:
The command signs you in, creates or selects an organization and project, scaffolds .polpo/, creates a project API key, writes POLPO_URL and POLPO_API_KEY to .env.local, and performs the initial deploy.
You can then run polpo create, polpo deploy, and the other commands without npx @polpo-ai/cli.
To attach an existing directory to an existing Cloud project, run npx @polpo-ai/cli link --project-id <uuid>. Linking also downloads the project’s current Polpo resources.

2. Load the generated credentials

.env.local is not loaded automatically by your shell. Load it before using the examples below:
POLPO_URL is the project data-plane URL, such as https://abcdefghijklmnopqrst.polpo.cloud.

3. Call the generated agent

The blank scaffold creates an agent named agent-1 and deploys it during create:
The Cloud managed gateway provides model access by default. You do not need to configure a provider key for this first request.

4. Customize and redeploy

Edit .polpo/agents.json to change the generated agent. Each entry contains an agent definition and its team:
Deploy the updated configuration:
See Agent Definition for the configuration fields and Deploy for deploy flags and resource behavior.

5. Use the TypeScript SDK

For local model access and custom gateways, see Model Gateway.