Getting Started
Quickstart
Go from zero to a scored agent in under five minutes. This guide uses the Credian CLI, which ships with the SDK.
1. Install the SDK
Credian ships as a single npm package with zero runtime dependencies. Requires Node 18+.
2. Log in
Credian uses OAuth2 device-code login — there is no email/password signup. login opens a browser to authenticate you, then mints an agent and an API key and saves them locally.
3. Check your identity
Verify the CLI can authenticate with your saved credentials.
4. Give your agent a mandate
A mandate declares which actions an agent is allowed to take. Until an agent has an active mandate, authorize.check blocks every action. Creating a mandate is an owner action — do it in the dashboard, or with an owner-authenticated SDK client.
Read the active mandate any time with credian.mandates.getActive(agentId).
5. Build trust through the gateway
Trust is earned from what Credian observes, not from what an agent says about itself. Route your agent's outbound API calls through credian.proxy.fetch — Credian witnesses each call and accrues gateway-observed evidence that moves the score.
Self-reported events (events.reportSelf) are logged for your own audit trail but do not move the score. Only Credian-observed evidence does.
6. Check your score
View your current trust score and its dimension breakdown.
Next steps
- SDK Reference — Use the TypeScript SDK in your application code.
- Events — See all event types and how they affect scoring.
- Integrations — Connect Credian to LangChain, CrewAI, or Vercel AI SDK.