Skip to content

Latest commit

 

History

History
81 lines (61 loc) · 2.69 KB

README.md

File metadata and controls

81 lines (61 loc) · 2.69 KB


sak-template

NPM Version License GitHub Stars Node Version

A minimal template for using the Starknet Agent Kit

⚠️ Warning: This kit is currently under development. Use it at your own risk! Please be aware that sharing sensitive information such as private keys, personal data, or confidential details with AI models or tools carries inherent security risks. The contributors of this repository are not responsible for any loss, damage, or issues arising from its use.

Prerequisites

  • Node.js installed
  • Git installed
  • An AI model provider API key (Choose one from the list here)
  • A Starknet wallet private key
  • A Starknet RPC URL

Quick Start

  1. Clone the repository:
git clone https://github.com/kasarlabs/sak-template.git
cd sak-template
  1. Install dependencies:
pnpm install
  1. Create a .env file in the root directory with:
PRIVATE_KEY="your_wallet_private_key"
PUBLIC_ADDRESS="your_wallet_address"
RPC_URL="your_rpc_endpoint"
AI_PROVIDER_API_KEY="your_ai_api_key"
AI_PROVIDER="anthropic"  # or "openai", "gemini", "ollama"
AI_MODEL="claude-3-5-sonnet-latest"  # or your chosen model
API_KEY="your_api_key_for_endpoints"

Info: You can find all the providers and their model names here.

  1. Run the application:
pnpm run dev

The template includes a basic setup that queries your ETH balance. You can modify src/index.ts to implement other functionalities available in the Starknet Agent Kit.

Getting an Anthropic API Key

  1. Visit https://console.anthropic.com/
  2. Create an accountw
  3. Navigate to API Keys section
  4. Click "Create Key"

Support

Need help? Feel free to reach out to us on Telegram