CLI Scaffolding
The published create-goat-agent CLI generates a complete starter project with all boilerplate pre-configured. Choose from three presets depending on your use case.
If you already have an agent or app, start with manual installation instead. The official AgentKit product page positions the CLI as the path for runnable starter projects.
Usage
The CLI prompts you for three inputs:
- Project name -- the directory name for your new project
- Preset -- which plugin set to include
- Network -- target network (
goat-testnetorgoat-mainnet)
Presets
Plugins: wallet (10 actions)
Best for getting started quickly or building custom agents that only need basic wallet operations.
Plugins: wallet, wgbtc, bridge, bitcoin (23 actions)
Best for DeFi-focused agents that need bridging, wrapped BTC, and Bitcoin oracle access.
Plugins: All 13 plugins (95 actions)
Includes everything: wallet, DEX, bridge, x402 payments, merchant portal, ERC-8004 identity, BitVM2, LayerZero, NFTs, governance, faucet, and Bitcoin.
Generated Project Structure
Generated Code
The generated src/index.ts includes:
- All plugin imports for the chosen preset
- A
NoopWalletProvider(replace withEvmWalletProviderorViemWalletProviderfor production) - An
ActionProviderwith all actions registered - A
PolicyEngineconfigured for the chosen network - An
ExecutionRuntimeready to execute actions
Example: minimal preset output
Running the Project
Customizing After Scaffolding
After generating your project:
Add custom actions
Use customActionProvider or implement ActionDefinition to add your own tools. See Custom Tools.
Connect to your AI framework
Export tools for your framework of choice:
See the Frameworks guide for details.
Configure for production
- Set up Redis idempotency for distributed deployments
- Add Prometheus metrics for observability
- Configure execution hooks for audit logging
See Runtime Configuration for details.
The CLI is published as the create-goat-agent npm package and generates projects that depend on @goatnetwork/agentkit.
The latest CLI scaffold writes GOAT_TESTNET_RPC_URL=https://rpc.testnet3.goat.network into .env.example, matching the upstream goat-testnet network config.