| { |
| "agent": { |
| "name": "openclaw-trading-bot", |
| "description": "OpenClaw bot for paper trading with llama.cpp/OpenAI-compatible external LLM Space", |
| "timezone": "UTC" |
| }, |
| "providers": [ |
| { |
| "name": "hf_llamacpp_openai", |
| "type": "custom_http", |
| "base_url": "${LLM_SPACE_OPENAI_URL}", |
| "method": "POST", |
| "timeout_ms": 30000, |
| "headers": { |
| "Content-Type": "application/json", |
| "Authorization": "Bearer ${LLM_SPACE_API_KEY}" |
| }, |
| "request_schema": { |
| "model": "${LLM_MODEL}", |
| "messages": [ |
| { |
| "role": "user", |
| "content": "${prompt}" |
| } |
| ], |
| "temperature": 0.2, |
| "max_tokens": 700 |
| }, |
| "response_path": "choices.0.message.content" |
| } |
| ], |
| "routing": { |
| "market_analysis": "hf_llamacpp_openai", |
| "signal_generation": "hf_llamacpp_openai", |
| "reporting": "hf_llamacpp_openai" |
| }, |
| "tools": { |
| "alpaca_paper": { |
| "type": "python", |
| "module": "tools.alpaca_paper", |
| "env": [ |
| "ALPACA_API_KEY", |
| "ALPACA_API_SECRET", |
| "ALPACA_BASE_URL" |
| ] |
| }, |
| "hf_storage": { |
| "type": "python", |
| "module": "tools.hf_storage", |
| "env": [ |
| "HF_TOKEN", |
| "HF_TRADES_REPO" |
| ] |
| }, |
| "market_data": { |
| "type": "python", |
| "module": "tools.market_data", |
| "env": [ |
| "MARKET_DATA_SOURCE" |
| ] |
| } |
| }, |
| "memory": { |
| "type": "sqlite", |
| "path": "/data/openclaw_memory.sqlite", |
| "max_tokens": 1200 |
| }, |
| "safety": { |
| "paper_only": true, |
| "max_order_qty": 5, |
| "max_position_usd": 5000, |
| "require_signal": true |
| } |
| } |
|
|