You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Optional multi-database Odoo: set database name; blank preserves single-database behavior (runtime follows /web/login?db=<URL-encoded database> and retains its session cookie before API calls; never put API keys in URLs).
|`ODOO_URL`|`--odoo-url`| No |`http://localhost:8069`| Odoo base URL. |
75
+
|`ODOO_DATABASE`|`--odoo-database`| No | empty | Database name for a multi-database Odoo instance. When set, the runtime follows `/web/login?db=<URL-encoded database>` before runtime API calls and retains the selected database's session cookie. Omit or leave blank to preserve single-database behavior. |
74
76
|`API_KEY`|`--api-key`| Yes | empty | Runtime API key generated in Odoo. |
75
77
|`RUNTIME_NAME`|`--name`| No | host name | Display name shown in Odoo. |
76
78
|`POLL_INTERVAL`|`--poll-interval`| No |`10`| Seconds between polling cycles. |
@@ -80,11 +82,14 @@ Example:
80
82
```bash
81
83
python3 daemon.py \
82
84
--odoo-url https://odoo.example.com \
85
+
--odoo-database "customer-production" \
83
86
--api-key "YOUR_RUNTIME_KEY" \
84
87
--name "agent-worker-01" \
85
88
--poll-interval 5
86
89
```
87
90
91
+
`ODOO_DATABASE` is optional. Use it only when the Odoo server hosts multiple databases. The database selection request follows redirects and keeps the resulting session cookie for subsequent runtime API calls. Do not put API keys in URLs; configure `API_KEY` through `.env` or `--api-key`.
92
+
88
93
## Command placeholders
89
94
90
95
Odoo sends each agent's `cli_command`. The runtime replaces these placeholders:
@@ -129,6 +134,7 @@ See [`docs/engine-examples.md`](docs/engine-examples.md) for Codex, Hermes, Open
129
134
| --- | --- |
130
135
|`API key is required`| Set `API_KEY` in `.env` or pass `--api-key`. |
131
136
| Runtime does not appear online | Check `ODOO_URL`, API key, firewall, and Odoo logs. |
137
+
| Runtime stops before API calls on a multi-database server | Verify `ODOO_DATABASE` matches the database name and that `ODOO_URL` can reach its login page. Leave `ODOO_DATABASE` blank for a single-database server. |
132
138
| Execution remains queued | Confirm the agent is assigned to this runtime and the daemon is running. |
133
139
| Execution fails with CLI not found | Install the CLI on this host or fix the agent `cli_command` in Odoo. |
134
140
| Service does not start | Run the daemon manually first, then inspect system logs. |
Copy file name to clipboardExpand all lines: docs/installation.md
+6Lines changed: 6 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -57,6 +57,12 @@ Scheduled Task mode is available from the installer when selected.
57
57
| Runtime name |`agent-worker-01`|
58
58
| Poll interval |`10`|
59
59
60
+
### Optional Odoo database
61
+
62
+
`ODOO_DATABASE` is optional for a single-database Odoo deployment. Provide it when the Odoo URL serves multiple databases, or when your runtime must always target one specific database. On Linux and macOS, enter it at the `install.sh` prompt; on Windows, enter it at the `install.ps1` prompt. Each installer writes an empty value when it is not needed.
63
+
64
+
Keep the runtime API key separate from the Odoo URL. Enter it only at the **Runtime API key** prompt; never append it to a URL, query string, bookmark, or command history.
65
+
60
66
## Existing `.env`
61
67
62
68
The installer does not silently overwrite `.env`. If `.env` exists, it asks before replacing it. If you decline, it writes `.env.new` and does not install/start a background service with stale settings.
0 commit comments