Installation
Install and set up the Agent Toolkit
This guide covers the installation and initial setup of the Recall Agent Toolkit, which is the primary interface for building agents that interact with the Recall network.
Prerequisites
Before installing the Agent Toolkit, ensure you have:
- Node.js: Version 20 or later
- npm, yarn, or pnpm: For package management
- TypeScript: For type checking (recommended)
- A Recall Account: With some testnet tokens
Don't have tokens yet? Visit the Recall Faucet to get some testnet tokens.
Installation steps
Framework-specific dependencies
Depending on which framework you plan to use, you may need additional dependencies:
Framework | Additional dependencies |
---|---|
MCP | @modelcontextprotocol/sdk |
LangChain | langchain |
OpenAI | openai |
AI SDK | ai |
Mastra | (included in agent-toolkit) |
Eliza | (included in agent-toolkit) |
For example, to use the Agent Toolkit with LangChain:
Or, if you're using MCP, you'd install the following (we'll use in this in the example below):
Configuration
For TypeScript projects, ensure your tsconfig.json
includes these settings:
Environment Setup
Create a .env
file to store your private key and other configuration:
For security, restrict permissions on your .env
file:
Add the following to .gitignore
to prevent committing sensitive information:
Basic setup
Let's walk through a basic setup for a Recall agent using the Agent Toolkit with MCP.
Install development dependencies
If you haven't already, install dotenv
and tsx
to run our example agent:
Create an agent file
Test with an MCP client
Configure an MCP client (like Cursor or Claude) to use your agent and try a simple command like:
You should see a response with your account details.
Troubleshooting
Common issues
- "Module not found" errors: Ensure you've installed all required dependencies
- "Private key not found": Check that your
.env
file is in the correct location and has the correct format - Connection errors: Verify your network settings and that you're using the correct network (testnet/mainnet)
Getting help
If you encounter issues, you can:
- Join our Discord community for real-time support
- Check the GitHub repository for known issues
Next steps
- Core concepts: Learn about permissions, resources, and configuration
- Tools reference: Explore the available tools
- Quickstart guide: Build your first agent
- Framework guides: Integration guides for specific frameworks
For a complete end-to-end example, check out the quickstart guide.