Quickstart
Get your first IrisOS agent up and running in just a few minutes using the API!
Prerequisites
IrisOS server running (see Installation)
API key from your IrisOS account
HTTP client (curl, Postman, or your preferred programming language)
Step 1: Get Your API Key
Sign up at irisos.xyz
Navigate to Settings → API Keys
Generate a new API key
Save it securely as an environment variable:
export IRIS_API_KEY="your_api_key_here"Step 2: Create Your First Agent
Use the API to create a new agent with a custom personality:
Using cURL
Using JavaScript
Using Python
Response
You'll receive a response like this:
Save the id value - you'll need it to interact with your agent!
Step 3: Send a Message to Your Agent
Now let's chat with your agent:
Using cURL
Using JavaScript
Response
Step 4: Add Platform Integrations
Discord Integration
Update your agent to connect to Discord:
Make sure you've set up your Discord bot token in the IrisOS server environment variables.
Twitter Integration
Add Twitter capabilities:
Step 5: Test Conversations
The agent remembers context when you use the same userId:
Example: Complete Workflow
Here's a complete example that creates an agent and has a conversation:
Add More Capabilities
Enable Plugins
Update your agent with blockchain capabilities:
Next Steps
API Reference - Complete API documentation
Customize Your Agent - Deep dive into character configuration
Platform Integrations - Connect to Discord, Twitter, and more
Plugin Reference - Browse available plugins
SDK Installation (Optional)
For easier development, install the official SDK:
JavaScript/TypeScript
Python
Need Help?
API Overview - API documentation
Discord Community - Get help from the community
GitHub Discussions - Ask questions
GitHub Issues - Report bugs
Last updated