{"id":22802464,"url":"https://github.com/truemagic-coder/solana-agent","last_synced_at":"2026-05-07T01:16:26.674Z","repository":{"id":277525706,"uuid":"930119111","full_name":"truemagic-coder/solana-agent","owner":"truemagic-coder","description":"Agentic IQ - $AGENT","archived":false,"fork":false,"pushed_at":"2026-05-01T17:59:09.000Z","size":8307,"stargazers_count":15,"open_issues_count":0,"forks_count":7,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-05-01T19:32:42.393Z","etag":null,"topics":["ai-agent","ai-agent-framework","ai-agents","ai-agents-framework","ai-swarm","ai-swarms","openai","solana"],"latest_commit_sha":null,"homepage":"https://solana-agent.com","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/truemagic-coder.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-02-10T05:17:41.000Z","updated_at":"2026-05-01T17:58:21.000Z","dependencies_parsed_at":null,"dependency_job_id":"7884ec67-7d35-4421-a0de-60b03de06556","html_url":"https://github.com/truemagic-coder/solana-agent","commit_stats":null,"previous_names":["truemagic-coder/solana-agent"],"tags_count":229,"template":false,"template_full_name":null,"purl":"pkg:github/truemagic-coder/solana-agent","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/truemagic-coder%2Fsolana-agent","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/truemagic-coder%2Fsolana-agent/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/truemagic-coder%2Fsolana-agent/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/truemagic-coder%2Fsolana-agent/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/truemagic-coder","download_url":"https://codeload.github.com/truemagic-coder/solana-agent/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/truemagic-coder%2Fsolana-agent/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32718535,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-07T00:29:05.620Z","status":"ssl_error","status_checked_at":"2026-05-07T00:28:57.074Z","response_time":117,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai-agent","ai-agent-framework","ai-agents","ai-agents-framework","ai-swarm","ai-swarms","openai","solana"],"created_at":"2024-12-12T09:06:02.655Z","updated_at":"2026-05-07T01:16:26.667Z","avatar_url":"https://github.com/truemagic-coder.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Solana Agent\n\n[![PyPI - Version](https://img.shields.io/pypi/v/solana-agent)](https://pypi.org/project/solana-agent/)\n[![Python 3.13-3.14](https://img.shields.io/badge/python-3.13%20%7C%203.14-blue.svg)](https://www.python.org/downloads/)\n[![PyPI - Downloads](https://img.shields.io/pypi/dm/solana-agent)](https://pypi.org/project/solana-agent/)\n[![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](https://opensource.org/licenses/MIT)\n[![codecov](https://img.shields.io/codecov/c/github/truemagic-coder/solana-agent/main.svg)](https://codecov.io/gh/truemagic-coder/solana-agent)\n[![Build Status](https://img.shields.io/github/actions/workflow/status/truemagic-coder/solana-agent/ci.yml?branch=main)](https://github.com/truemagic-coder/solana-agent/actions/workflows/ci.yml)\n[![Ruff Style](https://img.shields.io/badge/style-ruff-41B5BE)](https://github.com/astral-sh/ruff)\n\nThin public SDK for the hosted [Solana Agent](https://solana-agent.com) platform.\n\nThe public package is intentionally small:\n\n- One agent per client instance.\n- Hosted chat and hosted wallet flows.\n- Hosted account and pricing APIs.\n- MCP plugin support for external tools.\n\n## Python Support\n\nWe support the current and previous CPython minor versions.\n\nToday that means:\n\n- Python 3.14\n- Python 3.13\n\n## Install\n\n```bash\npip install solana-agent\n```\n\n## Quick Start\n\nUse the Solana Agent CLI to get a new `privy_user_id` from the interactive menu:\n\n```bash\nuvx solana-agent wallet menu\n```\n\nThe generated `privy_user_id` is saved automatically in the user-local Solana Agent app data directory on Windows, macOS, and Linux. Passing `privy_user_id=` or `config.ai.privy_user_id` still overrides the saved value.\n\n```python\nfrom solana_agent import SolanaAgent\n\nagent = SolanaAgent(\n    instructions=\"You are a Solana trading bot.\",\n    privy_user_id=\"my-privy-user-id\",\n)\n\ncontext = await agent.context(\n    conversation_id=\"my-conversation-id\",\n    model=\"chat\",\n)\n\nresponse = await agent.message(\n    message=\"What is the price of SOL?\",\n    **context\n)\n\nprint(response)\n```\n\n## Hosted Memory\n\n```python\ncontext = await agent.context(\n    conversation_id=\"my-conversation-id\",\n    model=\"memory\",\n    memory_ttl_tier=\"project\",\n)\n```\n\n## Priority Service Tier\n\n```python\ncontext = await agent.context(\n    service_tier=\"priority\",\n)\n```\n\n## MCP Tools\n\nConnect Streamable HTTP MCP servers by enabling the `mcp` tool and adding server config:\n\n```python\nimport os\nfrom solana_agent import SolanaAgent\n\nagent = SolanaAgent(\n    config={\n        \"ai\": {\n            \"instructions\": \"Use connected MCP tools when they help the user.\",\n            \"privy_user_id\": os.environ[\"PRIVY_USER_ID\"],\n            \"tools\": [\"mcp\"],\n        },\n        \"tools\": {\n            \"mcp\": {\n                \"servers\": [\n                    {\n                        \"url\": os.environ[\"MCP_SERVER_URL\"],\n                        \"headers\": {\n                            \"Authorization\": f\"Bearer {os.environ['MCP_SERVER_TOKEN']}\",\n                        },\n                    }\n                ],\n                \"llm_provider\": \"openai\",\n                \"api_key\": os.environ[\"OPENAI_API_KEY\"],\n                \"llm_model\": \"gpt-4.1-mini\",\n            }\n        },\n    }\n)\n\ncontext = await agent.context(\n    conversation_id=\"mcp-demo\",\n    model=\"chat\",\n)\n\nresponse = await agent.message(\n    \"Use the connected MCP tools to summarize my latest CRM tasks.\",\n    **context,\n)\n\nprint(response)\n```\n\n## Wallet and Billing Helpers\n\n```python\n\nwallet_address = await agent.get_wallet_address()\n\nsummary = await agent.get_account_summary()\n\nreport = await agent.get_usage_report(\n    \"month\"\n)\n\nforecast = await agent.get_usage_forecast(\n    window_days=30,\n)\n\npricing = await agent.get_pricing_info()\n\ntooling_totals = summary.get(\"tooling\", {}).get(\"lifetime\", {}).get(\"totals\", {})\ntooling_projection = (\n    forecast.get(\"tooling\", {})\n    .get(\"projected_month_end\", {})\n    .get(\"totals\", {})\n)\n\nprint(tooling_totals)\nprint(tooling_projection)\n```\n\n## Private Key Export\n\nExport the hosted wallet private key when you want self-custody:\n\n```bash\nuvx solana-agent wallet export --yes\n```\n\nPass `--wallet-id` to export an older rotated wallet from `old_wallets`.\n\n## Rotating Wallets\n\nIf a wallet needs to be retired, rotate it from the interactive menu:\n\n```bash\nuxv solana-agent wallet menu\n```\n\n## Smoke Testing\nFor a live hosted smoke run from the CLI, use the dev-gated wallet smoke command or the dev-only wallet menu item:\n\n```bash\nuvx solana-agent wallet smoke --dev\nuvx solana-agent wallet menu --dev\n```\n\nThe smoke preview prints a funding estimate in USDC before the live chat checks run. Search-enabled checks are included by default; wallet rotation and private-key export checks are opt-in.\nUse `--big` to add the expanded protocol profile: priority-tier chat plus Jupiter, Kamino, and Birdeye read checks.\nUse `--include-transfer --transfer-recipient \u003cwallet\u003e [--transfer-amount-usdc 0.10]` when you want the smoke run to execute a live USDC transfer.\nAdd `--json` to `wallet smoke` when you want machine-readable output instead of tables.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftruemagic-coder%2Fsolana-agent","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftruemagic-coder%2Fsolana-agent","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftruemagic-coder%2Fsolana-agent/lists"}