> ## 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](/inference/quickstart) 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](/sdk/predictions).

## Installing Muna

We provide SDKs for common development frameworks:

<CodeGroup>
  ```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"
    }
  }
  ```
</CodeGroup>

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)!
</Tip>

<Warning>
  Keep your access key secret! Do not embed it in client-side code that you ship to users.
  See our [security model](/security) for more information.
</Warning>

## Choosing a Client

The SDK exposes three ways to run a model:

<Columns cols={3}>
  <Card title="Using the Muna Client" icon="https://mintcdn.com/natml/tPEncFm_vVgfF3QS/logo/logo.svg?fit=max&auto=format&n=tPEncFm_vVgfF3QS&q=85&s=9e3e74970c2ea7adbda8640d8ac3a2e4" href="/sdk/predictions" width="231" height="136" data-path="logo/logo.svg">
    Run any compiled model with the raw `muna.predictions` API.
  </Card>

  <Card title="Using the OpenAI Client" icon="https://mintcdn.com/natml/g-FmapdpRuhZwR-G/images/sdk/openai-logo.png?fit=max&auto=format&n=g-FmapdpRuhZwR-G&q=85&s=22a17400d6368fe7c8941d66c6a65d36" href="/sdk/openai" width="128" height="128" data-path="images/sdk/openai-logo.png">
    Chat, embeddings, speech, and transcriptions, with the OpenAI interface.
  </Card>

  <Card title="Using the Anthropic Client" icon="https://mintcdn.com/natml/g-FmapdpRuhZwR-G/images/sdk/anthropic-logo.png?fit=max&auto=format&n=g-FmapdpRuhZwR-G&q=85&s=ad95c16e222667e1ca83451d4bd422f9" href="/sdk/anthropic" width="128" height="128" data-path="images/sdk/anthropic-logo.png">
    The Messages API, with the Anthropic interface.
  </Card>
</Columns>


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