Getting Started
Get up and running with Quantish Agent in 5 minutes.
Prerequisites
- Node.js 18+ - Download here
- LLM API Key - Either:
- Anthropic API Key (Claude models)
- OpenRouter API Key (100+ models)
Step 1: Install
$
npm install -g @quantish/agent
Or run directly with npx:
npx @quantish/agent
Step 2: Initialize
Run the setup wizard to configure your API keys:
$
quantish init
🔐 Setting up Quantish Agent
Choose your LLM Provider:
1. Anthropic (Claude models)
2. OpenRouter (100+ models)
>
2
✓ LLM Provider set to openrouter
Enter your OpenRouter API key:
✓ OpenRouter API key saved
Creating your Quantish wallet...
✓ Wallet created!
Setup complete! Run 'quantish' to start.
What happens during init?
- LLM Provider - Choose Anthropic (Claude) or OpenRouter (100+ models)
- API Key - Stored locally for your chosen LLM provider
- Wallet Creation - A Polymarket wallet is created via the Quantish Signing Server
- Quantish API Key - Your personal trading API key is generated
About the Signing Server
Polymarket uses a gasless relayer system. The Quantish Signing Server handles the complex signature formats and relays transactions. Your funds remain non-custodial - you can export your private key anytime.
Step 3: Start Trading
$
quantish
██████╗ ██╗ ██╗ █████╗ ███╗ ██╗████████╗██╗███████╗██╗ ██╗
Hey there! I'm Quantish, your AI trading agent.
You:
what's my balance?
✓ get_balances()
Your wallet balances:
• USDC: $0.00
• MATIC: 0.00
To start trading, deposit USDC to your wallet.
Step 4: Fund Your Wallet
To trade on Polymarket, you need USDC in your wallet. Ask the agent for your deposit address:
You:
get my deposit address
✓ get_deposit_addresses()
Deposit addresses for your wallet:
Polygon (USDC recommended):
0x1234...abcd
Deposits are automatically converted to USDC.e for trading.
Environment Variables
You can also set keys via environment variables:
| Variable | Description |
|---|---|
ANTHROPIC_API_KEY |
Anthropic API key (for Claude models) |
OPENROUTER_API_KEY |
OpenRouter API key (for 100+ models) |
QUANTISH_API_KEY |
Your Quantish trading API key |
MCP_SERVER_URL |
Optional: Custom Trading MCP server URL |
EXA_API_KEY |
Optional: Exa AI for better web search |
# For Anthropic
export ANTHROPIC_API_KEY="sk-ant-..."
# OR for OpenRouter
export OPENROUTER_API_KEY="sk-or-..."
# Plus your trading key
export QUANTISH_API_KEY="qtsh_..."
quantish
Configuration File
Config is stored in ~/.quantish/config.json:
{
"provider": "openrouter",
"openrouterApiKey": "sk-or-...",
"quantishApiKey": "qtsh_...",
"mcpServerUrl": "https://quantish-sdk-production.up.railway.app/mcp",
"model": "z-ai/glm-4.7"
}