AGI_Assistant / openclaw.json
Dmitry Beresnev
configure openclaw to use custom LLM server
23f86af
{
"agent": {
"name": "openclaw-trading-bot",
"description": "OpenClaw bot for paper trading with Alpaca and ResearchEngineering AGI Multi-Model API",
"timezone": "UTC"
},
"providers": [
{
"name": "agi_chat",
"type": "custom_http",
"base_url": "${LLM_SPACE_OPENAI_URL}",
"method": "POST",
"timeout_ms": 30000,
"headers": {
"Content-Type": "application/json"
},
"request_schema": {
"messages": [
{
"role": "user",
"content": "${prompt}"
}
],
"max_tokens": 700,
"temperature": 0.2
},
"response_path": "choices.0.message.content"
},
{
"name": "agi_web_chat",
"type": "custom_http",
"base_url": "${LLM_SPACE_WEBCHAT_URL}",
"method": "POST",
"timeout_ms": 45000,
"headers": {
"Content-Type": "application/json"
},
"request_schema": {
"messages": [
{
"role": "user",
"content": "${prompt}"
}
],
"max_tokens": 700,
"temperature": 0.2,
"max_search_results": 5
},
"response_path": "choices.0.message.content"
}
],
"routing": {
"market_analysis": "agi_web_chat",
"signal_generation": "agi_chat",
"reporting": "agi_chat"
},
"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
}
}