Installation
- JavaScript
- Python
- HTTPie
Quick Example
30 seconds to your first agent. Here’s everything you need:- JavaScript
- Python
- cURL
Step-by-Step Guide
Follow these steps to deploy your first production-ready agent.1
Get your API key
Get Access
Sign up for the AGI Platform to get your API key
2
Create a session
Start by creating a new agent session. The packages handle this automatically:
- JavaScript
- Python
- HTTPie
3
Send a task message
Give the agent a task. The packages handle polling automatically:
- JavaScript
- Python
- HTTPie
4
Monitor progress
The packages automatically poll for results. For real-time updates, use event streaming:
- JavaScript
- Python
- HTTPie
5
Respond to questions
If the agent asks a question, respond using the same method:
- JavaScript
- Python
- HTTPie
6
Clean up
The packages handle cleanup automatically. With context managers (Python) or try/finally (JavaScript):
- JavaScript
- Python
- HTTPie
Complete Examples
Here are complete examples using the official packages:- JavaScript
- Python
- HTTPie
Additional Operations
Control Execution
Pause, resume, or cancel a running task:- JavaScript
- Python
- HTTPie
Navigate Browser
Manually navigate the browser to a specific URL:- JavaScript
- Python
- HTTPie
Take Screenshot
Get a base64-encoded screenshot of the current browser state:- JavaScript
- Python
- HTTPie
Next Steps
You’re ready to build. Explore these resources to take your agents to the next level:Full API Reference
Complete endpoint documentation and parameters
Use Cases & Examples
Real-world examples and patterns
Best Practices
Production-ready patterns and optimizations
Error Handling
Robust error handling strategies
Need help? Our team is here to support you. Reach out at [email protected] or visit theagi.company.