Eliza Okto Plugin Setup
A plugin that connects Eliza AI with Okto's Web3 infrastructure for natural language blockchain interactions.
Quick Start Template Available!
Get started quickly with our pre-configured example that demonstrates the Okto Eliza Plugin in action. This implementation includes authentication setup, basic Web3 operations, and example conversations.
Getting Started
This guide assumes you have an existing Eliza project where you want to add Web3 capabilities. If you're new to Eliza, you can either:
- Explore the Eliza Framework by referring to the docs to create a new project from scratch
- Use our Sample Agent Implementation which comes with both Eliza and the Okto plugin pre-configured
Before you begin, set up your developer dashboard by making sure you have :
- Created your Okto Developer Dashboard account
- Get your Okto credits from the dashboard
- Obtained your API keys from the dashboard
- Enabled the specific Chains and Tokens you plan to use in your application
- Optional: Enabled Sponsorship for the desired chains
If you need help, reach out to us on our troubleshooting form and we will contact you.
Prerequisites
Before getting started, ensure you have the following:
- Node.js (v23+) and pnpm: Download Node.js
- Existing Eliza Project: A working Eliza project where you want to add Web3 capabilities
- Okto API Keys: You need your
OKTO_CLIENT_PRIVATE_KEY
andOKTO_CLIENT_SWA
. Obtain these from the Okto Developer Dashboard. - Google OAuth Credentials: Create OAuth 2.0 credentials in the Google Cloud Console.
- LLM Provider Account (Optional): Access to OpenAI, Anthropic, or another supported LLM provider.
Environment Setup
Create a .env
file in your project root:
Get your OKTO_CLIENT_PRIVATE_KEY
and OKTO_CLIENT_SWA
from the Okto Dashboard.
- Go to Google Cloud Console
- Create OAuth 2.0 credentials for your project
- Set the redirect URI to:
http://localhost:5000
- Save your Client ID and Client Secret in the
.env
file
Need detailed instructions? Check our Google Console Setup Guide.
Verify Installation
Test your setup by running your agent and trying a basic Web3 command:
Try these example commands to test the integration:
- "Show me my wallet balance"
- "What chains are supported?"
- "Help me transfer some tokens"
Available Actions
The Okto Eliza Plugin provides the following actions:
Action | Description | Example Prompt |
---|---|---|
OKTO_GET_PORTFOLIO | Get user's token portfolio | "Show me my portfolio" |
OKTO_GET_ACCOUNT | Get wallet accounts | "What's my wallet address?" |
OKTO_GET_CHAINS | List supported networks | "What chains are supported?" |
OKTO_GET_NFT_COLLECTIONS | Get NFT collections | "Show my NFT collections" |
OKTO_GET_ORDERS_HISTORY | View transaction history | "Show my transaction history" |
OKTO_GET_PORTFOLIO_NFT | Get NFT portfolio | "Display my NFT portfolio" |
OKTO_GET_TOKENS | List supported tokens | "What tokens are supported?" |
OKTO_TRANSFER | Transfer tokens | "Send 0.1 ETH to 0x123..." |
OKTO_NFT_TRANSFER | Transfer NFTs | "Transfer my NFT to 0x456..." |
OKTO_SWAP | Execute token swaps | "Swap ETH for USDC" |
Quick Start Template Available!
Get started quickly with our pre-configured example that demonstrates the Okto Eliza Plugin in action. This implementation includes authentication setup, basic Web3 operations, and example conversations.
Need help or have questions? Join our Discord community for support and discussions!