Skip to content

5afe/vercel-ai-sdk-safe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vercel AI SDK + Safe

This example repo shows how to create an AI agent with capabilities to interact with your Safe using Vercel AI SDK.

What you’ll need

Prerequisite knowledge: You will need some basic familiarity with Node.js.

Before progressing with the tutorial, please make sure you have:

  • Installed and opened ollama. This tutorial will run llama3.2, but feel free to explore other models;
  • Set up a wallet for your agent with some Sepolia test funds to pay for the transactions, for example with Metamask;
  • (Optional) If you wish to use OpenAI models instead (or another provider), you will need to create an account on their website and get an API key

Setup

Install ollama

See: https://github.com/ollama/ollama

ollama run llama3.2

Create .env file

create a file named .env at the root of your project, and add your private key and address key to it:

cp .env.example .env

Exeucte script

npx tsx src/index.ts

Help

Please post any questions on Stack Exchange with the safe-core tag.

License

MIT, see LICENSE.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published