Skip to main content
OneCLI records every request an agent makes through the gateway: where it went and what the gateway decided. It never stores a header value, a body or a credential. This page covers both OneCLI Cloud and self-hosted. You see the requests on the vaults you can use. The examples use the OneCLI Cloud API at https://api.onecli.sh. On a self-hosted install, use your own API address.

What each log shows

Activity: agent calls and decisions

In the sidebar, click Usage, then Activity. Each row shows the time, the agent, the vault, the provider, the method and endpoint, the HTTP status and the latency. The Result column is what your permissions and rules did with the request: Requests that wait for you show at the top, under Requests waiting on you. Click Approve or Deny. See Approvals. Filter by Vault, Agent, Result and time: Last hour, Last 24 hours, Last 7 days, Last 30 days, Any time or chosen days. A vault’s page and an agent’s page show the same log for that vault or agent.
GET /v2/activity takes vault, agent, result (allowed, blocked, approval, rate_limited), from and to (ISO 8601), plus limit and cursor for paging. Each row has the agent, vault, method, host, path without its query string, status, latency, result, the ids of the items it used (itemIds), and the id and name of each of those you can still use (items).

Usage: request counts

Usage > Dashboard shows the last 30 days: Requests today, Requests per day split by result, and counts By vault, By agent and By result. Filter by Vault and Agent. GET /v2/usage?days=30 takes days (4, 14 or 30), vault and agent. It returns total, byDay, byVault, byAgent, byResult, and byItem, today’s five most used items. Days are UTC. On OneCLI Cloud, credits count requests that use a credential. See Plans and usage.

Audit log: who changed what

The audit log records the changes people make: creating, updating and deleting vaults, items, agents, rules, API keys and members. Each row has the action, the service, the actor, the time and metadata with ids and names, never a value. A row the platform wrote on its own has actorKind: "service". GET /v2/audit takes a signed-in session, not an API key. Filter with action (for example delete), service, actor (a user id), since and until. An admin or owner reads every row. Anyone else reads only their own actions. On OneCLI Cloud, your plan sets how long the audit log is kept: 1 day on Free, 7 on Developer, 30 on Pro.

Next steps