---
title: "Installation"
description: "Install the StackMachine SDK for JavaScript or Python."
---

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

# Installation

Install the package for your language and set a workspace API token:

```bash
export STACKMACHINE_API_TOKEN=your_workspace_api_token_here
```

Get a workspace API token from the dashboard or follow [Agent authentication](/getting-started/agent-authentication) to sign in and choose a workspace.


```bash
npm install stackmachine
```

```bash
pip install stackmachine
```

> Source: [stackmachine/sdks](https://github.com/stackmachine/sdks/tree/main) examples.

Source: https://docs.stackmachine.com/getting-started/installation/index.mdx
