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

  1. Sign up at irisos.xyz

  2. Navigate to Settings → API Keys

  3. Generate a new API key

  4. 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

SDK Installation (Optional)

For easier development, install the official SDK:

JavaScript/TypeScript

Python

Need Help?

Last updated