Skip to main content

CLI

CommandWhat it does
agent-shield setup --harness claude-code --local --yesFinds node, the vendor CLIs and credentials; installs the pinned adapter into the Shield's prefix; writes the config and the default policy; prints the run line and the Zed snippet.
agent-shield setup --register --org UID --agent UID --iam-url URL --otel-url URL --key-env NAMEThe same, registered with Datalayer: the service agent's key read from the environment, exchanged at IAM, kept with the token in credentials.yaml (0600).
agent-shield run --workspace DIR --policy FILE --audit FILE --env NAME --pap COMPANY --verbose -- <command>The proxy: the agent behind the Shield on stdio. Registered, --pap <domain> (repeatable) lends the gateway's PAP toolset at that company with the Shield's own token, when the policy's mcp.allow names pap_<domain>; local-only, refused in a sentence.
agent-shield serve --host HOST --port PORT --token-env NAME --harness ID --bridge --workspace DIR --policy FILE --audit FILE --env NAME --idle SECONDS --verbose -- <command>The proxy as a server over WebSocket and ACP Streamable HTTP, one harness per connection; --harness (repeatable) serves the register's at /acp/<id>; --bridge relays with no Shield (the sidecar).
agent-shield connect URL --token-env NAMEA served Shield as a local stdio agent.
agent-shield log --last N --json --audit FILEThe audit's last rows.
agent-shield policy show --policy FILE --workspace DIREvery line of the policy in force and where it came from; the registration and what a standalone Shield cannot have; PAP's availability.
agent-shield policy schemaThe JSON Schema.
agent-shield policy init --forceThe default policy (a path may follow).
agent-shield harnessesThe register.
agent-shield upgrade --checkA newer Shield or adapter; without --check, moves the adapters to the pinned versions.
agent-shield uninstall --yesPreviews by default; keeps the audit and the policy.
agent-shield versionThe version.

Everything the proxy writes to its stdout is the protocol; what it says to a person goes to stderr. Nothing secret is printed: credentials and tokens are reported by name, never by value. datalayer agent-shield … is the same application, as a group of the Datalayer CLI.

Built: every command above. Not built: report (the Shield report on request).