dracull-agent / README.md
sitcod3's picture
Dracull agent backend: aiohttp + Playwright, auth gate, port 7860
9fa7eea verified
|
Raw History Blame Contribute Delete
1.17 kB
---
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).