Skip to content

Commit eb1326c

Browse files
committed
Document Agent Zero runtime environment
Teach the agent prompt about the split framework and task Python runtimes so backend checks use /opt/venv-a0 while user-code tasks use /opt/venv. Document the WebUI JSON API and CSRF token flow so terminal/API work can use the same session cookies and X-CSRF-Token correctly.
1 parent bcf2634 commit eb1326c

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,14 @@
11
## Environment
22
live in kali linux docker container use debian kali packages
33
agent zero framework is python project in /a0 folder
4-
linux fully root accessible via terminal
4+
linux fully root accessible via terminal
5+
6+
Python runtimes:
7+
- Framework runtime: /opt/venv-a0/bin/python runs Agent Zero itself, WebUI backend, API handlers, plugins/hooks, and framework imports.
8+
- Agent execution runtime: /opt/venv/bin/python is the default task/user-code environment. Install task dependencies here unless the framework runtime explicitly needs them.
9+
- Use /opt/venv-a0/bin/python for framework/backend import checks; do not treat /opt/venv packages as proof that framework code can import them.
10+
11+
WebUI JSON API:
12+
- API handlers live at /api/<handler_name> and usually accept JSON POST requests.
13+
- CSRF-protected requests need the same session cookies plus X-CSRF-Token.
14+
- Get a token with GET /api/csrf_token from the same WebUI origin; include Origin or Referer when calling from terminal, keep the returned cookies, then reuse the token and cookie jar for later API calls.

0 commit comments

Comments
 (0)