Skip to main content
This guide covers installing HashPilot and configuring it with your preferred AI editor or CLI.

Requirements

  • Node.js 20 or newer (node --version)
  • A Hedera account on the network you want to use. Testnet accounts are free at portal.hedera.com
  • An OpenAI API key, only if you want the documentation and code generation tools (docs_search, docs_ask, docs_get_example, code_generate)
  • Foundry and/or Hardhat on your machine, only for the smart contract tools

Install HashPilot

Option 2: Use with npx (No Installation)

You can run HashPilot directly with npx - no global installation required:
When using npx in your MCP configuration, use npx -y hashpilot to auto-confirm the install prompt.

Environment Variables

HashPilot reads its configuration from the env block of your MCP server entry. Only the first three are required.
JSON_RPC_RELAY_URL and MIRROR_NODE_URL only apply to the network named in HEDERA_NETWORK. If you switch networks at runtime with network_switch, the other networks use the public Hedera endpoints.

Getting a Hedera Account

  1. Visit portal.hedera.com
  2. Create a free account
  3. Navigate to the Testnet tab
  4. Copy your Account ID (e.g., 0.0.12345)
  5. Copy your Private Key. Both the DER-encoded and the raw hex form shown in the portal work; portal keys are ECDSA
Never share your private key. Keep it secure and only use testnet keys for development. See Best Practices for key handling.

Editor Configuration

Choose your AI editor below for specific setup instructions. All of them use the same mcpServers entry; only the file location differs.

Claude Desktop

Config file location:
  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
  • Linux: ~/.config/Claude/claude_desktop_config.json
Configuration:
Steps:
  1. Create or edit the config file at the location above
  2. Add the configuration with your credentials
  3. Restart Claude Desktop
  4. Test by asking: “Use the health_check tool”

Using Global Installation

If you installed HashPilot globally, you can use hashpilot directly instead of npx:

Verify Installation

After configuring your editor, test that HashPilot is working:
  1. Ask your AI assistant: “Run the health_check tool”
  2. You should see the version, the tool count and your operator account
Ask for “health_check with verbose on” to also see whether the Mirror Node and the ChromaDB host behind the docs tools are reachable, the JSON-RPC relay in use, and the Node.js version.
On startup HashPilot looks up your operator account on the Mirror Node and checks that HEDERA_OPERATOR_KEY really belongs to it. If the key does not match, the server refuses to start and the error names both keys. See Troubleshooting.

Next Steps

Tutorials

End-to-end walkthroughs from first account to verified contract

Tool Reference

All 32 tools with their operations and parameters

Best Practices

Keys, networks, RPC providers, costs

Features

Learn what HashPilot can do