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

# Installing the Muna SDK

> Run models on the local device, with our client SDKs.

Our [hosted endpoint](https://docs.muna.ai/inference/quickstart.md) is local inference under the hood: each GPU server runs
the Muna SDK behind an [OpenAI-compatible web server](https://github.com/muna-ai/muna-server). Using the
SDK directly peels back that layer, so you can run the same compiled models on the CPU, GPU, or neural
processor of your choosing. [Learn more](https://docs.muna.ai/sdk/predictions.md).

## Installing Muna

We provide SDKs for common development frameworks:

```bash JavaScript icon="js" theme={null}
# Run this in Terminal
$ npm install muna
```

```bash Python icon="python" theme={null}
# Run this in Terminal
$ pip install --upgrade muna
```

```bash React Native icon="react" theme={null}
# Run this in Terminal
$ npm install @muna/expo
```

```yaml Flutter icon="flutter" theme={null}
# Add this to your `pubspec.yml`
dependencies:
  muna: 0.0.2
```

```kt Android icon="android" theme={null}
// Add this to your `build.gradle` or `build.gradle.kts` file
dependencies {
  implementation("ai.muna:muna:0.0.10")
}
```

```swift iOS focus={4-5,8-9} icon="swift" theme={null}
let package = Package(
  name: "MySwiftPackage",
  dependencies: [
    // Add the package to your dependencies
    .package(url: "https://github.com/muna-ai/muna-swift.git", from: "0.0.2"),
  ],
  targets: [
    // Then add `Muna` as a dependency to your target
    .target(name: "MySwitPackage", dependencies: ["Muna"]),
  ]
)
```

```json Unity focus={3-9,11} icon="unity" theme={null}
// Add this to your `Packages/manifest.json` file
{
  "scopedRegistries": [
    {
      "name": "Muna",
      "url": "https://registry.npmjs.com",
      "scopes": ["ai.muna"]
    }
  ],
  "dependencies": {
    "ai.muna.muna": "0.0.48"
  }
}
```

Muna uses access keys to authenticate all requests. Head to your [developer settings](https://muna.ai/settings/developer)
and generate an access key.

> [!TIP]
>
> Most of our client SDKs are open-source. Star them [on GitHub](https://github.com/muna-ai)!

> [!WARNING]
>
> Keep your access key secret! Do not embed it in client-side code that you ship to users.
> See our [security model](https://docs.muna.ai/security.md) for more information.

## Choosing a Client

The SDK exposes three ways to run a model:

> [card] [Using the Muna Client](https://docs.muna.ai/sdk/predictions.md)
>
> Run any compiled model with the raw `muna.predictions` API.

> [card] [Using the OpenAI Client](https://docs.muna.ai/sdk/openai.md)
>
> Chat, embeddings, speech, and transcriptions, with the OpenAI interface.

> [card] [Using the Anthropic Client](https://docs.muna.ai/sdk/anthropic.md)
>
> The Messages API, with the Anthropic interface.


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