Connect your agent harness
Every supported harness speaks the Model Context Protocol. Add the Venym MCP server once and your agent gains live market data plus — with a key — perp trades, pair trades, and swaps.
Two transports work everywhere: local stdio (npx -y @venym/mcp, reads your key from VENYM_API_KEY) and remote HTTP (https://defi.venym.io/mcp, send your key in the Authorization header). Without a key, only public market-data tools are exposed.
Claude Code
Config file: .mcp.json (project) or ~/.claude.json (user) · official docs ↗
{
"mcpServers": {
"venym": {
"type": "stdio",
"command": "npx",
"args": ["-y", "@venym/mcp"],
"env": { "VENYM_API_KEY": "venym_sk_live_..." }
}
}
}{
"mcpServers": {
"venym": {
"type": "http",
"url": "https://defi.venym.io/mcp",
"headers": { "Authorization": "Bearer venym_sk_live_..." }
}
}
}Codex CLI
Config file: ~/.codex/config.toml (or project .codex/config.toml) · official docs ↗
[mcp_servers.venym]
command = "npx"
args = ["-y", "@venym/mcp"]
[mcp_servers.venym.env]
VENYM_API_KEY = "venym_sk_live_..."[mcp_servers.venym]
url = "https://defi.venym.io/mcp"
bearer_token_env_var = "VENYM_API_KEY"OpenCode
Config file: opencode.json (project) or ~/.config/opencode/opencode.json · official docs ↗
{
"$schema": "https://opencode.ai/config.json",
"mcp": {
"venym": {
"type": "local",
"command": ["npx", "-y", "@venym/mcp"],
"enabled": true,
"environment": { "VENYM_API_KEY": "venym_sk_live_..." }
}
}
}{
"$schema": "https://opencode.ai/config.json",
"mcp": {
"venym": {
"type": "remote",
"url": "https://defi.venym.io/mcp",
"enabled": true,
"headers": { "Authorization": "Bearer venym_sk_live_..." }
}
}
}Hermes Agent
Config file: ~/.hermes/config.yaml · official docs ↗
mcp_servers:
venym:
command: "npx"
args: ["-y", "@venym/mcp"]
env:
VENYM_API_KEY: "venym_sk_live_..."
enabled: true
supports_parallel_tool_calls: true # market reads onlymcp_servers:
venym:
url: "https://defi.venym.io/mcp"
headers:
Authorization: "Bearer venym_sk_live_..."
enabled: trueOpenClaw
Config file: ~/.openclaw/openclaw.json · official docs ↗
{
"mcp": {
"servers": {
"venym": {
"command": "npx",
"args": ["-y", "@venym/mcp"],
"env": { "VENYM_API_KEY": "venym_sk_live_..." }
}
}
}
}{
"mcp": {
"servers": {
"venym": {
"url": "https://defi.venym.io/mcp",
"transport": "streamable-http",
"headers": { "Authorization": "Bearer venym_sk_live_..." }
}
}
}
}Tell your coding agent about Venym
Drop this into your project's AGENTS.md or CLAUDE.md so an agent working in your repo knows the contract:
## Venym DeFi (agent layer for DeFi)
- MCP server `venym` is configured (tools: get_orderbook, get_candles, execute_order,
open_pair_position, swap_quote, ...). Prefer MCP tools over raw HTTP.
- For code, use @venym/sdk (TS) or the `venym` pip package (Python).
- API base: https://defi.venym.io/api. Public reads need no key; execution uses
VENYM_API_KEY (scoped, risk-limited). Always pass an Idempotency-Key on retries.
- Docs: https://defi.venym.io/docs · llms.txt: https://defi.venym.io/llms.txt