> For the complete documentation index, see [llms.txt](https://docs.trycortex.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.trycortex.ai/guides/getting-started-with-the-sdk.md).

# Getting Started with the SDK

## Installation

{% tabs %}
{% tab title="Typescript" %}

<pre class="language-bash"><code class="lang-bash"><strong>npm install cortex-ts
</strong></code></pre>

{% endtab %}

{% tab title="Python" %}

```bash
pip install trycortex
```

{% endtab %}
{% endtabs %}

## Create a CortexAPI

Create environment variables for your cortex API key.

Use the API key to create a CortexAPI.

{% tabs %}
{% tab title="Typescript" %}

```typescript
import { CortexAPI } from 'cortex-ts';
const {CORTEX_API_KEY} = process.env;

const cortex = new CortexAPI(CORTEX_API_KEY);
```

{% endtab %}

{% tab title="Python" %}

```python
import cortex

CortexAPI = cortex.CortexAPI(API_KEY)
```

{% endtab %}
{% endtabs %}
