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

# SDKs

> Choose the EigenPal SDK for your task: define agents with the TypeScript authoring SDK, or start and inspect runs with TypeScript and Python API clients.

EigenPal provides an agent authoring SDK and API client SDKs. Choose the package
for the code you are writing: an agent definition in Git, or an application that
calls EigenPal.

## Define an agent

Use **`@eigenpal/automations`** to author `agent.ts` and shared `resource.ts`
definitions. It includes typed tools, schemas, guards, optional filesystem access
and evaluation logic. Definitions live in your organization's Git repository.
Constructing a definition needs no API key; validating and releasing against a
deployment uses CLI authentication.

[Start with the agent authoring SDK](https://docs.eigenpal.com/sdks/automations.md).

## Call EigenPal from your application

Use **`@eigenpal/sdk`** for TypeScript or **`eigenpal`** for Python to call the
REST API. Authenticate with an API key to start workflow/agent runs, inspect
results, upload files, manage datasets and run experiments. The API clients are
generated from the same OpenAPI specification.

> [card] [Agent authoring](https://docs.eigenpal.com/sdks/automations.md)
>
> `@eigenpal/automations`: define agents, resources, tools and evaluations in TypeScript.

> [card] [TypeScript API client](https://docs.eigenpal.com/sdks/typescript.md)
>
> `@eigenpal/sdk`: call EigenPal from your application.

> [card] [Python API client](https://docs.eigenpal.com/sdks/python.md)
>
> `eigenpal`: call EigenPal from Python.

## Use the packages together

Author and release `agents/invoice-reviewer/agent.ts` with `@eigenpal/automations`.
Then start it from an application using the API client:

```ts theme={null}
import { EigenpalClient } from '@eigenpal/sdk';

const client = new EigenpalClient({ apiKey: process.env.EIGENPAL_API_KEY });
const result = await client.run(
  'agents.invoice-reviewer',
  { subtotal: 100 },
  { waitForCompletion: 60 }
);
```

Get an API key under **Settings → API Keys**. Point the API client at a self-hosted
deployment with `baseUrl` (TypeScript) or `base_url` (Python). The authoring package
does not provide `client.run`, and the API client does not define tools or evaluators.

Use the [CLI](https://docs.eigenpal.com/cli/overview.md) to clone, validate, save and release agent source.
See the [API reference](https://docs.eigenpal.com/api-reference) for HTTP endpoints.

All three packages are open source:
[authoring SDK](https://github.com/eigenpal/automations),
[TypeScript API client](https://github.com/eigenpal/sdk-typescript), and
[Python API client](https://github.com/eigenpal/sdk-python).


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