{"repo":"prfagit/sam-framework","free":true,"listed":false,"github":"https://github.com/prfagit/sam-framework","clone":"git clone https://github.com/prfagit/sam-framework.git","description":"Solana Agent Middleware: a Python framework for AI agents with tools, memory, wallets, events, and guarded on-chain workflows.","language":"Python","stars":30,"topics":["ai-agents","automation","crypto","defi","llm","python","solana","trading"],"license":null,"category":"ai-agents","readme_excerpt":"SAM Framework Solana Agent Middleware. SAM is a Python framework for building AI agents that can hold context, call tools, and operate around Solana workflows without turning every demo into a pile of one-off scripts. It is built for the part of crypto agents that actually gets annoying: provider switching, wallet handling, memory, event streams, tool policy, retries, and enough guardrails that an agent can touch real infrastructure without pretending the risk is gone. What it is SAM gives you a working agent runtime with: - Multi-provider LLM support across OpenAI, Anthropic, xAI, and local-compatible endpoints - Tool calling with structured errors, retries, loop control, and middleware - Persistent sessions backed by SQLite - Encrypted wallet and key storage using Fernet and OS keyring - Solana and DeFi integrations for market data, trading, balances, and validation - A plugin system for adding tools without rewriting the core loop - CLI, API, and Streamlit surfaces for different ways to run agents It is not a toy chatbot with a wallet glued on. It is the boring middle layer you need before the interesting parts can run. Why it exists Most agent demos die at the same place. They can write a tweet, summarize a chart, maybe call one API. Then you ask them to keep memory, switch models, handle secrets, stream state to a frontend, validate a transaction, retry a flaky request, and not blow up after five tool calls. SAM is the layer under that. Install Run the guided setup: Star","default_branch":null,"files":null,"tree":[],"storefront":"/r/prfagit","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/prfagit/sam-framework/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}