Prerequisites
- Node.js 20+ — install
1. Create and deploy a project
Run the CLI wizard from the directory that will contain your Polpo configuration:.polpo/, creates a project API key, writes POLPO_URL and POLPO_API_KEY to .env.local, and performs the initial deploy.
Optional: install the CLI globally
Optional: install the CLI globally
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 namedagent-1 and deploys it during create:
4. Customize and redeploy
Edit.polpo/agents.json to change the generated agent. Each entry contains an agent definition and its team: