CLI

When to use: You need zero-code validation, quick demos, or scripted runs that operate from any shell.

1

Install or Upgrade the Package

pip install --upgrade glaip-sdk

Or use uv tool install glaip-sdk if you prefer uv.

2

Configure Credentials

aip configure
3

Create and Run Your First Agent

# Create agent
aip agents create \
  --name "hello-world-agent-123" \
  --instruction "You are a friendly AI assistant."

# Run the agent (use the ID or name shown in the create output)
aip agents run 49874068-f2e7-42b4-878d-ef545db5a110 "Hello! How are you today?"
# or
aip agents run "hello-world-agent-123" "Hello! How are you today?"

This creates and runs your first agent using the CLI. The create output shows both the agent ID and name—use either in the run command.

Optional: Run from the Slash Command Palette

Launch the palette and select /agents to pick and run your new agent:

aip

Inside the palette, choose /agents, select your agent, and provide the prompt inline. See the CLI Slash Palettearrow-up-right reference for screenshots and deeper guidance.

circle-info

Replace the sample ID or name with the values shown in your aip agents create output. If you have multiple agents with similar names, use the full ID to avoid confusion.

Optional Next Steps

Last updated