Skip to main content
This guide walks you through scaffolding a minimal Node.js project that uses the Hedera Agent Kit to run an AI agent against the Hedera Testnet. Pick your framework (LangChain, Vercel AI SDK, or Google ADK), install the packages, configure credentials, and run a single-shot “what’s my balance?” call.

Prerequisites

1. Create your project directory

2. Install the agent kit and init the project

Open package.json and add "type": "module" to enable ES modules. Install the core package plus your chosen framework toolkit:

3. Add environment variables

Create a .env file in your project directory:
Add your credentials. Use OPENAI_API_KEY for the LangChain / Vercel AI SDK examples, or GOOGLE_API_KEY for the Google ADK example: You can get a Hedera Testnet account on portal.hedera.com.

4. Create your agent

Create an index.js file:

5. Run your example

From the project root:

Agent Execution Modes

This tool has two execution modes with AI agents:

Resources

Examples

Clone the repository and try out different example agents. See the full Developer Examples documentation for detailed setup instructions. Available Examples: NPM packages: