Enable AI agents to trade leveraged positions on Solana via Asgard Finance.
Built on the Agent Skills specification — works with Claude Code, Moltbot, OpenClaw, and other compatible agent frameworks.
The internet is going agentic. Protocols that don't expose agent-friendly interfaces will lose volume to those that do. This skill makes Asgard accessible to AI agents, not just humans.
| Action | Description |
|---|---|
markets |
List tradeable pairs, protocols, leverage ranges |
simulate-open |
Preview a position before executing |
open |
Open a leveraged long/short position |
simulate-close |
Preview closing a position |
close |
Close a position |
partial-close |
Partially close (Kamino/Drift only) |
git clone https://github.com/asgard-finance/asgard-agent-skill.git
cd asgard-agent-skill
pip install requestsexport ASGARD_API_KEY="your-key" # Get from @asgardfi on TelegramPublic access available at 1 req/sec without a key.
python scripts/asgard.py markets# Copy skill to Claude Code skills directory
cp -r asgard-agent-skill ~/.claude/skills/asgardPoint your agent to the SKILL.md file or import the skill directory.
asgard-agent-skill/
├── SKILL.md # Agent instructions (loaded by frameworks)
├── scripts/
│ └── asgard.py # CLI tool agents invoke
└── references/
└── API.md # Detailed API docs
| Protocol | Partial Close |
|---|---|
| Marginfi | No |
| Kamino | Yes |
| Solend | No |
| Drift | Yes |
User: "Open a 3x long on SOL with 50 USDC"
Agent:
- Queries available markets
- Simulates the trade → "Entry $142.50, liquidation $102.30"
- Asks for confirmation
- Returns unsigned transaction for wallet signing
MIT