Quick Start
Get your first AI agent running in 5 minutes.
π Installation
pip install glaip-sdk
βοΈ Configure
export AIP_API_URL="https://your-api-url.com"
export AIP_API_KEY="your-api-key"
β
Verify
Test your connection:
aip status
Expected output: β
Connected to AIP API
π Python: Create Your First Agent
from glaip_sdk import Client
# Initialize the client (automatically loads environment variables)
client = Client()
# Create a simple AI agent
agent = client.create_agent(
name="hello-world-agent",
instruction="You are a friendly AI assistant."
)
# Run the agent
agent.run("Hello! How are you today?")
# Clean up
agent.delete()
π» CLI: Create Your First Agent
# Create agent
aip agents create \
--name "hello-world-agent" \
--instruction "You are a friendly AI assistant."
# List agents to get the ID
aip agents list
# Run the agent (replace <AGENT_ID> with actual ID)
aip agents run <AGENT_ID> \
--input "Hello! How are you today?"
# Clean up
aip agents delete <AGENT_ID>
π§Ή Clean Up
Always clean up resources when testing:
# Delete the agent (preferred method)
agent.delete()
# Alternative: delete by ID if you don't have the object
client.delete_agent("agent-id")
π― What Just Happened?
Installation: You installed the SDK and CLI tools
Configuration: You set up API credentials for authentication
Verification: You confirmed the connection to the AIP backend
Creation: You created an AI agent with basic instructions
Execution: You ran the agent and got a response
Cleanup: You removed the test agent
π Troubleshooting
401 Unauthorized
Check your AIP_API_KEY
404 Not Found
Verify your AIP_API_URL
Connection refused
Ensure the AIP backend is running
Import errors
Check Python version (3.10+)
π Next Steps
Learn More: Check out Core Concepts
Build Tools: Create custom tools in Tools Guide (Python SDK or CLI with --file)
Connect Services: Learn about MCPs in MCPs Guide
Advanced Usage: Explore Streaming & Renderers
Congratulations! You've successfully created and run your first AI agent. The AIP SDK makes it simple to build powerful AI applications. π