Skip to content

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

abstraxn-agent-starter

Build your first Web3 AI agent in a few minutes.

A minimal starter for @abstraxn/agent-kit — create an agent with an auto-provisioned wallet, set a spend policy, and connect to MCP tools.

Docs · More examples · Dashboard


Use this template

Click the green Use this template button at the top of this repo to create your own copy, then clone it.

Quick start

npm install
cp .env.example .env
# set ABSTRAXN_API_KEY in .env (get it from the dashboard)
npm run dev

You should see your agent get created, a wallet address, the spend policy applied, and the list of MCP tools it can use.

What's here

File What it does
agent.ts The one file you customise — name, system prompt, spend limit, allowed tools.
index.ts Creates the agent, applies the spend policy, connects to MCP. You rarely edit this.
.env.example Copy to .env and add your API key.

Next steps

  1. Edit agent.ts to describe your use case.
  2. Add an LLM loop (OpenAI, Anthropic, or any provider via the Vercel AI SDK) so the agent can decide which tool to call.
  3. See full, runnable agents (web crawling, trading, monitoring, x402 payments) in abstraxn-agent-examples.

Security

Never commit your .env or your wallet accessKey. Store the accessKey in a secrets manager — it is the only way to sign for the agent's wallet and cannot be retrieved again.

License

MIT

About

Starter template for building a Web3 AI agent with @abstraxn/agent-kit. Click "Use this template" to spin up your own agent.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages