How to Give Your AI Agent Access to Financial Markets on Solana
Published on 2026-02-25
Your OpenClaw bot or Claude Code agent can buy tokenized stocks, gold, Bitcoin, Ethereum, and hundreds more — plus earn yield on stablecoins. Set up AI-powered investing on Solana.
The AI Agent as a Financial Tool
AI agents are increasingly capable of complex reasoning — researching companies, analysing trends, comparing options, and forming views. But until recently, acting on those views required human intervention. Your OpenClaw bot could recommend buying Apple stock; it couldn't actually do it. Your Claude Code agent could research yield strategies; it couldn't deposit a single dollar.
That's changing. On-chain financial markets now offer tokenized versions of traditional assets — US equities, precious metals, index funds — alongside native crypto instruments like staking, lending, and liquidity provision. These markets are accessible to anyone (or anything) that can sign a transaction.
For the growing number of people running autonomous agents via OpenClaw (formerly Clawdbot), Claude Code, or other platforms, this means the gap between "I think you should buy" and "I bought it for you" is closing. The tools exist. The assets exist. What's needed is a clean interface between the AI and the markets.
What Your AI Agent Can Trade on Solana
AI agents can buy tokenized stocks, ETFs, and gold
US equities are now tradeable on-chain as SPL tokens on Solana. Providers like xStocks (by Backed Finance) and Ondo Finance have brought over 200 stocks and ETFs to the network, including:
- Tech stocks: Apple, Tesla, Nvidia, Microsoft, Google, Meta, Amazon, Netflix
- ETFs and indices: SPY (S&P 500), QQQ (Nasdaq 100)
- Blue chips across sectors: healthcare, consumer, financial
- Precious metals: Gold and silver are available as tokenized commodities, fully backed by physical reserves. With gold recently hitting all-time highs and silver surging alongside it, these have become some of the most actively traded tokenized assets on Solana
These tokens are fully collateralised — backed 1:1 by the underlying shares held in regulated custody. Corporate actions like dividends and stock splits are reflected through token mechanics. They trade 24/7 on Solana DEXes, not just during market hours.
The practical implications are significant:
- An AI agent can buy Apple stock or gold at 3am on a Sunday
- No brokerage account is needed
- Trades settle in seconds, not days
- The same token can be used as collateral for borrowing, added to a liquidity pool, or swapped for another asset — all without leaving the chain
To discover what's available:
sol token browse stocks # equities and ETFs
sol token browse metals # gold, silver, commodities
To buy tokenized Apple stock or gold:
sol token swap 100 usdc aaplx # Apple
sol token swap 500 usdc xaux # gold
Major cryptocurrencies
Solana isn't limited to its native ecosystem. Wrapped and bridged versions of major cryptocurrencies from other chains are available to trade on Solana's DEXes, meaning your agent can access the entire crypto market from a single chain:
- Bitcoin (BTC), Ethereum (ETH), XRP, BNB, TRX — the blue chips
- Monad, NEAR, Hyperliquid (HYPE), ZEC — popular L1s and platforms
- Thousands of Solana-native tokens — from established DeFi protocols to newly launched projects
This means an agent researching the broader crypto market doesn't need wallets on five different chains. It can swap between Bitcoin, Ethereum, XRP, and Solana-native tokens all through the same tool:
sol token swap 200 usdc btc # buy Bitcoin
sol token swap 100 usdc eth # buy Ethereum
sol token price btc eth xrp bnb sol # compare prices
AI agent yield: stablecoin lending across five Solana protocols
On-chain lending protocols allow you to deposit stablecoins (USDC, USDT) and earn interest — currently around 3-7% APY depending on the protocol and market conditions. This is often significantly better than a traditional savings account.
Sol CLI aggregates five lending protocols — Kamino, MarginFi, Drift, Jupiter Lend, and Loopscale — and auto-picks the best rate:
sol lend rates usdc # compare APY across all five protocols
sol lend deposit 1000 usdc # auto-picks the best deposit rate
sol lend deposit 500 usdc --protocol kamino # or target a specific protocol
sol lend positions # see deposits and yield across all protocols
Your agent can compare rates, allocate funds, and monitor positions. All deposits are overcollateralised, and the CLI monitors health factor when borrowing.
Managed yield vaults take this further — deposit and the vault handles strategy optimisation:
sol earn # list vaults with APY and TVL
sol earn deposit 100 usdc # deposit into best vault
sol earn positions # your vault positions
SOL staking
Staking SOL earns roughly 7-8% APY in staking rewards, plus MEV tips that can be compounded. It's the simplest yield source on Solana — delegate your SOL and start earning.
sol stake new 50 # delegate 50 SOL
sol stake list # see rewards and claimable MEV
sol stake claim-mev # compound MEV tips
Real-world asset yield
Beyond stocks, precious metals, and stablecoins, Solana hosts an expanding set of real-world asset tokens including reinsurance products (9-16% APY from regulated reinsurance markets), real estate tokens (fractional ownership with rental income), and other commodity-backed instruments. These offer yield profiles that are uncorrelated with crypto or equity markets — reinsurance products, for example, are driven by actuarial models rather than market sentiment.
Browse RWA tokens:
sol token browse rwa
Prediction markets on Solana
Prediction markets let agents take positions on real-world outcomes — elections, crypto prices, sports, culture, and more. Markets from Polymarket and Kalshi are available on Solana via Jupiter, meaning your agent can research an event and bet on its outcome in the same workflow.
sol predict list crypto # browse events by category
sol predict search "solana" # search by keyword
sol predict event POLY-89525 # event detail with all markets
sol predict buy 5 yes POLY-701571 # buy YES contracts
sol predict positions # open positions with P&L
This is particularly well-suited to AI agents: they can research events, form probabilistic views, and act on them — all programmatically. See AI Agent Prediction Markets for end-to-end workflows.
DCA and limit orders
Agents don't need to watch markets continuously. Dollar-cost averaging spreads a purchase over time, and limit orders trigger automatically at a target price:
sol token dca new 500 usdc sol --every day --count 10 # buy SOL daily for 10 days
sol token limit new 50 usdc bonk --at 0.000003 # buy BONK when it hits target
Both appear in the portfolio view with fill progress, so the agent always knows what capital is deployed.
Why AI Agents and Solana Markets Fit Together
Always available
On-chain markets trade 24/7/365. There are no market hours, no weekends, no bank holidays. An AI agent can execute at the moment it makes a decision, not when a broker's office opens.
Programmable
Every operation is a command with structured output. An agent doesn't need to navigate a web interface or interact with a GUI. It runs a command, parses the JSON response, and decides what to do next.
# Agent checks yields across opportunities
sol lend rates usdc --json
sol stake list --json
sol token price sol --json
# Agent makes a decision and executes
sol lend deposit 500 usdc --json
Composable
On-chain assets are interoperable. An agent can swap USDC for tokenized Tesla stock, then use that stock as collateral to borrow more USDC, then deposit the USDC into a lending pool — all in a few commands. This kind of multi-step financial operation would require multiple brokerages and days of settlement in traditional finance.
Auditable
Every transaction is recorded on-chain with a permanent, verifiable record. Sol CLI additionally logs every operation locally with USD prices at execution time, giving you a complete audit trail for cost basis and tax reporting.
sol wallet history --type swap
sol portfolio pnl
Low cost
Solana transactions cost fractions of a cent. An agent can check prices, execute trades, and rebalance a portfolio without fees eating into returns. This makes strategies that require frequent small transactions — like dollar-cost averaging or yield optimisation — practically free to execute.
Setting Up Your AI Agent on Solana
Step 1: Install Sol CLI
Add as an agent skill (OpenClaw, Claude Code, 37+ platforms):
npx skills add solanaguide/solana-cli
Or install globally for direct terminal use: npm install -g @solana-compass/cli
Also available on ClawHub under solana-payments-wallets-trading, or as a Claude Code plugin.
Step 2: Configure RPC
sol config set rpc.url https://your-rpc-endpoint.com
Use a dedicated RPC for production. Helius, Triton, and QuickNode all offer free tiers that are more than sufficient for personal agent use.
Step 3: Create and fund a wallet
sol wallet create --name agent-wallet
sol wallet list # shows the address
Transfer SOL to the displayed address from an exchange or existing wallet. Keep at least 0.05 SOL for transaction fees.
Step 4: Configure permissions
Before giving your agent access, lock down what it can do:
sol config set permissions.canTransfer false
sol config set permissions.canExportWallet false
sol config set limits.maxTransactionUsd 500
sol config status # review security settings
sol config lock # once happy, lock to prevent agent changes
Start restrictive. You can always relax permissions later as you build confidence in your agent's behaviour. See Agent Permissions & Security for the full list of 13 permission flags, transaction limits, and allowlists.
Step 5: Give your agent instructions
Your agent now has access to financial markets. You can instruct it to:
- Research and invest: "Research the current state of the AI chip market. If you think Nvidia is fairly valued, buy $200 worth of tokenized NVDA."
- Earn yield: "Compare USDC lending rates across all protocols. Deposit our idle USDC wherever the rate is highest."
- Set up recurring buys: "DCA $500 into SOL over 10 days."
- Trade predictions: "Research the upcoming Fed rate decision. If you think a cut is likely, buy YES contracts on the prediction market."
- Rebalance: "Check our portfolio. If any single position is more than 30% of total value, rebalance towards a more even split."
- Track performance: "Take a portfolio snapshot labelled 'weekly-check'. Compare it to last week's snapshot and summarise what changed."
The agent handles the commands; you set the strategy.
Managing AI Agent Trading Risk
Permissions, limits, and allowlists
Sol CLI enforces restrictions in code, not in the AI's prompt. A disabled command doesn't exist — it can't be invoked regardless of what instructions the agent receives or what prompt injection it encounters. Sol CLI provides 13 permission flags, transaction limits, and token/address allowlists — three layers of protection that are immune to prompt manipulation.
For most agent use cases, disable canTransfer and canExportWallet at minimum. Set maxTransactionUsd and maxDailyUsd to cap exposure. Use token allowlists to restrict which assets the agent can trade. Lock the config with sol config lock so the agent can't change its own constraints.
For the complete security guide — including real-world incidents and recommended configurations — see Agent Permissions & Security.
Start small
Fund your agent wallet with an amount you're comfortable experimenting with. Monitor its operations via sol wallet history and sol portfolio before scaling up.
Use snapshots for accountability
Portfolio snapshots create a verifiable record of your agent's performance:
sol portfolio snapshot --label "start"
# ... agent operates for a week ...
sol portfolio snapshot --label "week-1"
sol portfolio compare start week-1
sol portfolio pnl --since start
This gives you clear visibility into what the agent did and whether its decisions were beneficial.
Understand what you're buying
Tokenized equities on Solana are structured as synthetic products, not direct share ownership. They're fully collateralised and track the underlying price, but they don't carry shareholder voting rights or direct dividend payments (dividends are reflected through token mechanics). Understand the product before allocating significant capital.
What Your AI Agent Can Do on Solana Today
Here's a practical overview of the operations available:
| What you want | Command |
|---|---|
| Check what's trending | sol token browse trending |
| Browse tokenized stocks | sol token browse stocks |
| Browse gold, silver, metals | sol token browse metals |
| Get a token price | sol token price sol |
| Buy a token | sol token swap 100 usdc bonk |
| Buy tokenized gold | sol token swap 500 usdc xaux |
| Buy Bitcoin or Ethereum | sol token swap 200 usdc btc |
| Preview a trade | sol token swap 100 usdc sol --quote-only |
| Set up recurring buys | sol token dca new 500 usdc sol --every day --count 10 |
| Place a limit order | sol token limit new 50 usdc bonk --at 0.000003 |
| Send a payment | sol token send 50 usdc GkX...abc |
| Stake SOL | sol stake new 10 |
| Compare lending rates | sol lend rates usdc |
| Earn yield on USDC | sol lend deposit 100 usdc |
| Deposit into a yield vault | sol earn deposit 100 usdc |
| Bet on a prediction market | sol predict buy 5 yes POLY-701571 |
| Browse prediction events | sol predict list crypto |
| See full portfolio | sol portfolio |
| Take a snapshot | sol portfolio snapshot --label "today" |
| Track profit and loss | sol portfolio pnl |
| Check wallet balance | sol wallet balance |
Every command supports --json for structured output. Every transaction is logged with USD prices for audit.
Further Reading
- Sol CLI Complete Guide — full feature walkthrough and design philosophy
- Agent Permissions & Security — security deep-dive with real-world incidents
- AI Agent Prediction Markets — browse and trade Polymarket events
- x402 Agent API Payments — pay for market data and APIs with USDC
- Solana Agent Skill — quick start and installation
Disclaimer: This article is for informational purposes only and does not constitute financial advice. Cryptocurrency and tokenized asset markets are volatile, and past performance does not indicate future results. You are solely responsible for your own investment decisions and for understanding the risks involved. Always do your own research.
On this page
Related Content
Sol CLI: A Solana Skill for AI Agents
A Solana skill for OpenClaw, Claude Code, and AI agents. Trade tokens, manage wallets, stake SOL, earn yield, and track portfolios — no API keys, no code.
Sol CLI Guide: Every Solana Command for AI Agents and Humans
The complete guide to Sol CLI — trade, stake, lend, and manage portfolios on Solana from OpenClaw, Claude Code, or any AI agent. No API keys, no code required.
Polymarket with an AI Agent: Trade Prediction Markets on Solana
Your OpenClaw bot or Claude Code agent can browse, research, and trade Polymarket and Kalshi prediction markets on Solana. Binary YES/NO contracts on crypto, politics, sports, and more — all settled in USDC.
Product Keynote: Coinbase
Coinbase announces native Solana token trading directly within its retail app, bringing millions of on-chain assets to its massive user base
x402 on Solana: Your AI Agent Can Pay for Its Own Data
AI agents can now pay for premium APIs, web scraping, and market data per-request using USDC on Solana. No API keys, no subscriptions — just sol fetch and a wallet.
Scale or Die at Accelerate 2025: Messari x Solana Dev
Messari's Diran Li shares insights on building data-driven applications on Solana, focusing on data curation, AI integration, and scalable solutions.
Scale or Die Accelerate 2025: Node Consensus Networks with Jito Restaking
Evan Batsell from Jito Labs explains how to build Node Consensus Networks (NCNs) using Jito restaking on Solana.
Crypto's Killer Use Case Built On Solana | Arnold Lee
Discover how Sphere is leveraging Solana to create Spherenet, a permissioned blockchain solution for regulated fintechs to accelerate global payments and overcome traditional banking hurdles.
Ship or Die at Accelerate 2025: Fireside Chat: Marinade (Alison Mangiero, Hadley Stern)
Alison Mangiero discusses the Proof of Stake Alliance's efforts to secure regulatory clarity for staking in the US and globally.
Ship or Die at Accelerate 2025: Lightning Talk: Doodles
Doodles unveils DreamNet, a revolutionary storytelling protocol on Solana, set to transform the creative economy
Collector Crypt: Onchain Capital Markets On Solana | Tuomas Holmberg
Discover how Collector Crypt is revolutionizing the $10B+ trading card industry by bringing physical collectibles on-chain with positive EV mechanics, AI pricing oracles, and deep Solana integration.
Crypto's Next Cycle: Solana's Comeback vs Ethereum's Head Start | Qiao Wang
Explore the potential of Solana and Ethereum in the next crypto cycle, real-world asset tokenization, and the future of crypto payments with industry expert Qiao Wang.
Gold Capital Markets: Oro Labs
Oro Labs introduces staked gold and a global redemption network, bringing yield and unified settlement to tokenized gold on Solana
Ranger: Building a Unified Market - Ranger Finance
Ranger Finance unveils major platform expansions including a yield-bearing token, new vault integrations, and an upcoming token launch via Metatow at Solana Breakpoint 2025
Why It's Time to Reevaluate Your Solana Thesis | Santiago Santos
Renowned crypto investor Santiago Santos discusses Solana's incredible adoption flywheel, the importance of coordination in blockchain technology, and why he believes Solana could potentially flip Ethereum in the future.
- Borrow / Lend
- Liquidity Pools
- Token Swaps & Trading
- Yield Farming
- Solana Explained
- Is Solana an Ethereum killer?
- Transaction Fees
- Why Is Solana Going Up?
- Solana's History
- What makes Solana Unique?
- What Is Solana?
- How To Buy Solana
- Agent Permissions & Security
- AI Agent Financial Markets
- Solana Agent Skill
- Complete Sol CLI Guide
- AI Agent Prediction Markets
- x402 Agent API Payments
- Solana's Best Projects: Dapps, Defi & NFTs
- Choosing The Best Solana Validator
- Staking Rewards Calculator
- Liquid Staking
- Can You Mine Solana?
- Solana Staking Pools
- Stake with us
- How To Unstake Solana
- How validators earn
- Best Wallets For Solana
