Setting Up an Agent
This guide walks through creating a Steward agent from scratch — wallet creation, policy configuration, and your first transaction.Prerequisites
- A Steward tenant with an API key (see Self-Hosting or contact the team)
- Node.js 18+ or Bun
@stwd/sdkinstalled (Installation)
Step 1: Initialize the Client
Step 2: Create the Agent
- An agent record in the database
- An encrypted EVM keypair
- An encrypted Solana keypair
- Wallet entries for both chain families
Step 3: Configure Policies
Steward uses default deny — your agent can’t do anything without policies. Here’s a common setup for a trading agent:See the Policies Guide for detailed explanations of each policy type and common configurations.
Step 4: Generate an Agent Token
For the agent to authenticate its own requests, generate a scoped JWT:Step 5: Use the Agent Token
In your agent code, create a client with the agent token:Step 6: Fund the Wallet
Send ETH (or SOL) to the agent’s wallet address:Batch Creation
Creating multiple agents at once:What’s Next?
Policies Guide
Deep dive into policy configuration.
ElizaOS Plugin
Integrate with ElizaOS agents.
Secrets Guide
Manage API credentials securely.
SDK Reference
Full StewardClient API reference.