Help Center/Getting Started/How to Create Your First Agent
Back to Help Center
Getting Started

How to Create Your First Agent

Step-by-step guide to creating and deploying your first OpenClaw AI agent

Prerequisites

Before you begin, make sure you have:

  • An AgentClaw account (sign up at agentclaw.app/signup)
  • An API key from OpenAI, Anthropic, or OpenRouter
  • A Telegram bot token (or Discord bot token, depending on your channel)

Step 1: Sign Up and Subscribe

First, create an AgentClaw account and subscribe to a plan. You can choose between:

  • Monthly Plan: $9.99/month per instance
  • Yearly Plan: $99.99/year per instance (save 17%)

Payment is handled securely through Stripe. You'll receive a confirmation email once your subscription is active.

Step 2: Create a New Instance

  1. Navigate to your dashboard at /dashboard
  2. Click the "Create New Instance" button
  3. Fill out the instance configuration form:
    • Instance Name: A unique identifier for your agent
    • Subdomain: Choose a subdomain (e.g., my-agent.agentclaw.app)
    • OpenClaw Version: Select the latest stable version

Step 3: Configure Environment Variables

Add your API keys and bot tokens as environment variables. All values are encrypted at rest using AES-256-GCM encryption.

Required environment variables:

  • TELEGRAM_BOT_TOKEN: Your Telegram bot token from @BotFather
  • OPENAI_API_KEY or ANTHROPIC_API_KEY: Your AI provider API key

Optional environment variables:

  • DISCORD_BOT_TOKEN: For Discord integration
  • OPENROUTER_API_KEY: For OpenRouter models

Step 4: Start Your Instance

  1. After configuring your environment variables, click "Save Configuration"
  2. Click the "Start Instance" button
  3. Your agent will be provisioned and deployed in under 60 seconds
  4. You'll receive email notifications at each step of the deployment

Step 5: Test Your Agent

Once your instance is running:

  1. Open Telegram and search for your bot by username
  2. Start a conversation with /start
  3. Try sending a message to test the AI response
  4. Monitor real-time logs in your dashboard to see the interaction

Troubleshooting

If your instance doesn't start or your bot doesn't respond:

  • Check the logs for error messages
  • Verify your API keys are correct and have sufficient credits
  • Ensure your Telegram bot token is valid
  • Contact support at support@agentclaw.app

Next Steps

Still need help?

Our support team is ready to assist you with any questions.

Contact Support