Observe, then act, then verify
The Agent can read projects, environments, services, deploys, logs, domains, servers, and Git metadata. It calls structured Nearzero tools and uses the returned result for the next step.
The server enforces policy, not the model
Role checks and Agent action policies run in Nearzero. Production writes start disabled. An administrator has to turn that gate on.
| Boundary | Behavior |
|---|---|
| Organization scope | Tools operate within the active organization and the requesting user’s access. |
| Role and action policy | Each protected action is checked server-side before infrastructure work begins. |
| Production environments | Agent mutations are denied by default until an administrator enables them. |
| Tool results | The Agent must not claim success unless the invoked tool returns a successful result. |
Do not paste secrets into chat
Do not paste API keys, tokens, passwords, private keys, or secret-bearing commands into Agent chat. Nearzero uses dedicated UI handoffs for service environment values and SSH setup so the model does not need the raw value.
- 1Keep browser-exposed prefixes public.
NEXT_PUBLIC_,PUBLIC_, andVITE_values are intended for client bundles and must never contain credentials. - 2Treat database storage as privileged.
API redaction is not encryption at rest. Encrypt volumes and backups, and restrict Postgres access.
- 3Protect SSH material.
Dedicated remote setup accounts have root-equivalent Docker and privilege access.
- 4Rotate after suspected exposure.
Redaction limits accidental display; it cannot revoke a credential that untrusted code already received.
Build secrets are not a sandbox
Generated build phases keep configured values out of ordinary command arguments and use BuildKit secret mounts where supported. Durable logs are redacted before storage. These controls reduce accidental leakage, but they cannot make untrusted build code safe.
- Use the dedicated build-secret field when a Dockerfile needs a credential.
- Keep non-sensitive build arguments separate from private runtime values.
- Pin user-authored base images and production builder images by digest.
- Rotate a credential after any suspicious or untrusted build.
Before you enable the Agent on production
- ✓Roles match actual responsibilities.
Only trusted operators can mutate production or deploy privileged Compose workloads.
- ✓Model access is organization-scoped.
Use the intended BYOK provider and rotate its key through the settings flow.
- ✓Production mutations remain off until needed.
Enable them only after backups, rollback, and observability are tested.
- ✓Secrets stay out of chat and public prefixes.
Use the secure configuration surfaces and inspect client bundles before release.
- ✓Every action is verified.
Check deployment state, logs, domain resolution, and runtime health after changes.
Questions this page answers
Can the Nearzero Agent change production without permission?
No. It can inspect project state and logs, but it can only mutate what the requesting user's RBAC and workspace policy allow. Production writes stay disabled until an administrator turns that gate on.
Does the Agent get unrestricted SSH or Docker access?
No. It uses scoped Nearzero tools through the control-plane API. It cannot invent privileged paths or bypass administrator policy.