Skip to main content

Solana AI Agent

Project description

Solana Swarm

PyPI - Version

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 Solana accounts
  • Transfer SOL between accounts
  • Lookup token address for a token by name or symbol from Jupiter strict list
  • Requires free AlphaVybe Account:
    • Lookup USD price for a token
    • Lookup trading info for a token
    • Lookup OHLC data for a token
    • Calculate gain/losses for a token (1-day resolution)
    • Get SOL & SPL balances for accounts

Setup

  • Install OpenAI API KEY for zsh shell:
    • echo 'export OPENAI_API_KEY="YOUR_API_KEY"' >> ~/.zshrc
  • Install AlphaVybe API KEY for zsh shell
    • echo 'export VYBE_API_KEY="YOUR_API_KEY"' >> ~/.zshrc

Install

  • pip install solana-swarm

Usage

Rate-Limited Public RPCs

  • solana-swarm = mainnet-beta
  • solana-swarm --network devnet = devnet

Custom RPC

  • solana-swarm --rpc https://my-custom-rpc.com/123

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


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.2.2.tar.gz (5.1 kB view details)

Uploaded Source

Built Distribution

solana_swarm-0.2.2-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

Details for the file solana_swarm-0.2.2.tar.gz.

File metadata

  • Download URL: solana_swarm-0.2.2.tar.gz
  • Upload date:
  • Size: 5.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.20

File hashes

Hashes for solana_swarm-0.2.2.tar.gz
Algorithm Hash digest
SHA256 f46102bdb9e2b6c3006c8363ef44c27b51db4a1039108a449dac58378f5377a0
MD5 8d89cf443d4e10cd2ea5f6e1cb104c7a
BLAKE2b-256 83b655b2d3be4e6be6df46b89cb303141807f2e07a3f1f530ce44818a569605e

See more details on using hashes here.

File details

Details for the file solana_swarm-0.2.2-py3-none-any.whl.

File metadata

File hashes

Hashes for solana_swarm-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 5caf4ef34d5ed46256315d38434ebea461191609c0567426691df80838559639
MD5 700ac24b55980b06f6f7bcb778ae0a46
BLAKE2b-256 460e494ef35d7ffe6c91f8da5d07903417c4250302c66032b8c77edce33d3f44

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page