Skip to main content
1

Install the SDK

2

Get Your API Key

Log in to Dashboard, go to Settings, and copy your API key.
3

Initialize the Client

4

Create a Session

5

Wrap Your Existing Clients

The Python example wraps repo (the object returned by gh.get_repo(...)) directly rather than the top-level gh client — see Connectors for why this matters.
6

Complete the Session

Plan Tiers & API Keys

AgentRein has four plan tiers: FREE, PRO, TEAM, and ENTERPRISE. Your API key works across all plans, but certain features require a minimum plan:
If you call a PRO or TEAM feature on a FREE plan, the backend returns a 403 with a clear error message. Upgrade at Dashboard → Settings → Billing.
To get your API key: Dashboard → API Keys → Create New Key.

Testing & Sandbox

To test your agent without executing real actions, create a Sandbox API key in Dashboard → Settings → API Keys. Sandbox keys have the prefix ar_test_ and simulate all connector calls — nothing is written to GitHub, Stripe, or Slack. Switch between sandbox and production by changing one environment variable:
See Sandbox Mode for full details.