Spaces:
Running
Running
File size: 1,171 Bytes
79d8635 9fa7eea 79d8635 9fa7eea 79d8635 9fa7eea | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 | ---
title: Dracull Agent
emoji: "\U0001F9DB"
colorFrom: purple
colorTo: indigo
sdk: docker
app_port: 7860
pinned: false
---
# Dracull Agent backend (Docker Space)
The Python agent backend for the Dracull browser-automation app, hosted as a
Hugging Face Docker Space. It serves the full `/api/*` surface the dashboard
SPA knows: sessions, tasks, engines (dual-browser chrome/firefox), contexts,
browse, search, HITL, settings, voice, research, and chat with the tool loop.
- Frontend (Cloudflare Workers): https://dracull.dracull.workers.dev
- Space API: `https://sitcod3-dracull-agent.hf.space/api/*`
- Auth: when `APP_ACCESS_TOKEN` is set, every `/api/*` route except
`/api/health` and `/api/auth/login` requires `Authorization: Bearer <token>`
(constant-time compared). `POST /api/auth/login {"password": ...}` exchanges
the password for the token.
- CORS: only origins listed in `CORS_ALLOWED_ORIGINS` may call the API from a
browser. The Cloudflare Worker gateway injects the token server-side, so the
browser never handles it.
Local equivalent: repo `backend/Dockerfile.agent` + root `docker-compose.yml`
(same aiohttp server, port 8766 behind nginx).
|