Skip to main content

Agent Workflow

This workflow walks through the full lifecycle of deploying an agent using the Nestbox AI CLI. It includes environment setup, agent creation, deployment, and cleanup.

Step 1: Project Setup

Start by creating a new working directory and initializing your CLI session.

mkdir my_project
cd my_project
nestbox login demo.nestbox.ai
nestbox project use sales

Step 2: Prepare Compute

List available compute instances or create a new one:

nestbox compute list
nestbox compute create groot

Step 3: Create Agent

Create a new agent and associate it with the instance:

nestbox agent create --agent my-agent --instance groot --type REGULAR

List agents to confirm:

nestbox agent list

Step 4: Generate and Deploy Agent

Generate the agent project locally:

nestbox generate project my-agent --lang ts --template agent
cd my-agent

Deploy the agent to the compute instance:

nestbox agent deploy --agent my-agent --instance groot

Step 5: Cleanup

Remove the agent and logout:

nestbox agent remove my-agent
nestbox logout demo.nestbox.ai