Solana AI Agent
Project description
Solana Swarm
https://github.com/user-attachments/assets/16e7ec5e-a0a7-4bab-afca-dc621de1aa37
Solana Swarm is a stateful AI agent for the CLI that can perform actions on the Solana blockchain.
Fork it to create your own Solana Agent!
Actions
- Create new accounts
- Get balances of accounts
- Transfer between accounts
Setup
- Install OpenAI API KEY for zsh shell:
echo 'export OPENAI_API_KEY="YOUR_API_KEY"' >> ~/.zshrc
Install
pip install solana-swarm
Usage
Rate-Limited Public RPCs
solana-swarm
= devnetsolana-swarm --network mainnet-beta
= mainnet-beta
Custom RPC
solana-swarm --rpc https://my-custom-rpc.com/123
Example Test Flow on Devnet
solana-swarm
- Tell the AI to:
create 2 new accounts
- Go to https://faucet.solana.com/ and airdrop 0.5 SOL into account 1 (cut and paste public key from CLI into site)
- Tell the AI to:
Check the balance of account 1
- should be 0.5 SOL - Tell the AI to:
Transfer 0.25 SOL from account 1 to account 2
- should complete and show new balances - NOTE: wallets are not saved between chats so if you
exit
you will lose access to the wallets!
Contributing
Contributions to Solana Swarm are welcome! Please feel free to submit a Pull Request.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
solana_swarm-0.0.13.tar.gz
(3.9 kB
view hashes)
Built Distribution
Close
Hashes for solana_swarm-0.0.13-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e97b26cf28e27e26ff203fcab82532c9d6e764a17525db58a14d51f9e0717f4e |
|
MD5 | 8d1d69433b505d7f175fac666ab54816 |
|
BLAKE2b-256 | 5ad21ec8d80c29423988b31ac17f85110ddaab51ea8bc4daa18054b8ea1f44cc |