Audit Log
Review every admin mutation and gateway rejection in CodeVector. Filter by actor, target type, action, and date range.
Your gateway URL
Pin your own gateway hostname and we'll rewrite the routes and curl examples on every docs page so you can click straight through to the live console. Stored locally in your browser.
The Audit Log records every admin mutation and gateway rejection. Trace who changed what, when, and what the diff was.
The Audit Log

The Audit Log shows every event with actor, target, and a JSON diff of what changed.
Open /admin/audit-log to see the full log. The table shows:
- When - timestamp of the event.
- Action - the operation, such as
provider.createdorgateway.budget_rejected. - Target - the resource type that was affected.
- Actor - the user who performed the action, or
systemfor automated events. - Detail - a JSON diff showing before and after values.
Filtering
Use the filters to narrow the log:
- Action - free-text filter by action name.
- Actor - dropdown of all users.
- Target - dropdown of resource types (user, group, provider, model, etc.).
- Date range - start and end dates.
What gets logged
Every admin mutation writes an audit row synchronously. If the audit write fails, the mutation fails. No silent audit loss.
Gateway events that are also logged:
gateway.rate_limit_exceededgateway.budget_exceededgateway.secret_blockedgateway.model_not_found
Frequently asked questions
What events are logged?
Every admin mutation - create, update, delete - plus gateway rejections like rate_limit_exceeded, budget_exceeded, and secret_blocked.
How long are logs retained?
Audit logs are retained according to your database retention policy. There is no automatic purge.
Can I export the audit log?
Not from the UI today. For exports, query the audit log directly in your database.
Related docs
- Secret Rules. Block sensitive content and see matches in the audit log.
- Rate Limits. Configured limits that trigger gateway.rate_limit_exceeded events.
- Budgets. Spend caps that trigger gateway.budget_exceeded events.