Skip to main content
1

Install the SDK

2

Get your API key

Sign up at app.pikarc.dev and copy your API key from Settings > API Key. The key format is lg_<prefix>_<secret>.
3

Wrap your model call

4

See it in the dashboard

Open your dashboard to see the run, step timeline, token usage, and cost breakdown.

What just happened?

  1. guard.run() called POST /v1/runs/ — Pikarc checked the kill switch, budgets, and concurrency limits. The run was ALLOWED.
  2. run.model_call() called POST /v1/runs/{id}/steps — Pikarc evaluated guardrails again before the model call.
  3. After OpenAI responded, the SDK called PATCH /v1/runs/{id}/steps/{step_id} to report token usage and duration.
  4. When the async with block exited, the SDK called POST /v1/runs/{id}/end to mark the run as COMPLETED.
If any guardrail check had failed (budget exceeded, kill switch active, etc.), PikarcBlockedError would have been raised before the model call executed.

Next steps