Add local host mode and configurable LLM providers
This commit is contained in:
@@ -60,6 +60,26 @@ operator view for the tasks that actually execute on that Host, including
|
||||
per-step screenshots, OCR observations, and UI-tree results. The Cloud Console
|
||||
remains the fleet-level view for dispatch status and Cloud-proxy planner history.
|
||||
|
||||
## Local-only Host Agent
|
||||
|
||||
Run without a Cloud Control Plane by setting `HOST_AGENT_MODE=local`. Tasks
|
||||
submitted in the Host console are queued and executed in the same process:
|
||||
|
||||
```bash
|
||||
export HOST_AGENT_MODE=local
|
||||
export AI_PLANNER_ENABLED=true
|
||||
export AI_PLANNER_PROVIDER=openai-compatible
|
||||
export AI_PLANNER_MODEL=qwen2.5
|
||||
export AI_PLANNER_API_KEY=local-key
|
||||
export AI_PLANNER_BASE_URL=http://127.0.0.1:11434/v1
|
||||
uv run --package device-host-agent device-host-agent setup
|
||||
uv run --package device-host-agent device-host-agent
|
||||
```
|
||||
|
||||
`openai-compatible` works with Ollama, LM Studio, vLLM, or another server that
|
||||
implements OpenAI `/chat/completions`. Hosted `openai` and `anthropic` providers
|
||||
also accept `AI_PLANNER_API_KEY` and their conventional API key variables.
|
||||
|
||||
## Project Direction
|
||||
|
||||
The durable roadmap is in [docs/ROADMAP.md](docs/ROADMAP.md). The architecture
|
||||
|
||||
Reference in New Issue
Block a user