> ## Documentation Index
> Fetch the complete documentation index at: https://docs.aiveth.com/llms.txt
> Use this file to discover all available pages before exploring further.

# SDKs

> The Aiveth SDKs for Node, Python and React, and which one to use.

Aiveth by Gooclaim has three SDKs. Each wraps Aiveth's public endpoints so you don't have to write the token, webhook and admin API code yourself.

| Package | For | Install |
| - | - | - |
| [`@gooclaim/aiveth`](https://docs.aiveth.com/sdks/node) | Node servers (18.17 or later) | `npm install @gooclaim/aiveth` |
| [`gooclaim-aiveth-sdk`](https://docs.aiveth.com/sdks/python) | Python servers (3.10 or later) | `pip install gooclaim-aiveth-sdk` |
| [`@gooclaim/aiveth-react`](https://docs.aiveth.com/sdks/react) | React 18 single-page apps | `npm install @gooclaim/aiveth-react` |

Sign-in always happens on Aiveth's own page. Passwords, passkeys, two-step and single sign-on never pass through your app.

## Which one do I need?

> [card] [Node](https://docs.aiveth.com/sdks/node.md)
>
> Check tokens and webhooks on your server, and call the admin API.

> [card] [Python](https://docs.aiveth.com/sdks/python.md)
>
> The same as Node, for Python servers.

> [card] [React](https://docs.aiveth.com/sdks/react.md)
>
> Sign people in from a single-page app, with ready-made components.

A typical setup uses two: the React SDK in the browser to sign people in and get an access token, and the Node or Python SDK on your server to check that token.

## What the server SDKs do

| Task | Node | Python | Needs an API key |
| - | - | - | - |
| Check an ID token | `tokens.verifyIdToken` | `tokens.verify_id_token` | No |
| Find who an access token stands for | `tokens.userFromAccessToken` | `tokens.user_from_access_token` | No |
| Check a machine app's token | `tokens.verifyMachineToken` | `tokens.verify_machine_token` | No |
| Check an AI agent's token for your MCP server | `tokens.verifyMcpToken` | `tokens.verify_mcp_token` | No |
| Get a person's connected Google, Microsoft or GitHub token | `tokens.connectedToken` | `tokens.connected_token` | No (needs the app's secret) |
| Verify a webhook | `verifyWebhook` | `verify_webhook` | No |
| Manage people, invitations and roles | `people`, `invitations`, `roles` | same | Yes |
| Fine-grained permissions | `authorization` | same | Yes |
| Consent from your own screens | `consents` | same | Yes |
| Read events | `events` | same | Yes |

Make API keys in the console under **API keys**. Give each key only the powers it needs. See [API keys](https://docs.aiveth.com/account/api-keys.md).

## Environments

Each environment has its own keys and apps. Use `aiveth_sk_test_...` keys and your Development environment's apps while you build, and `aiveth_sk_live_...` keys and production apps when you ship.

## Errors

Every SDK reports Aiveth's own message. The server SDKs throw `AivethError` with the HTTP `status`, and separate errors for a bad token (`TokenVerificationError`), a missing agent permission (`InsufficientScopeError`) and a bad webhook (`WebhookVerificationError`). The React SDK throws `SignInError` and `RefusedError`.

## Not using an SDK?

Every SDK call maps to a public endpoint. See the [API reference](https://docs.aiveth.com/api-reference/introduction.md) and the [OpenID Connect endpoints](https://docs.aiveth.com/api-reference/oidc-endpoints.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.