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

# Usage

> Using the Nonci API and SDKs

Once you have setup your Nonci instance, you can start using it via the REST API or the SDK.

To install the SDK, run the following command -

<CodeGroup>
  ```bash npm theme={null}
  npm install nonci
  ```

  ```bash yarn theme={null}
  yarn add nonci
  ```

  ```bash pnpm theme={null}
  pnpm add nonci
  ```
</CodeGroup>

## Authentication

In the quickstart, when you ran the setup script, a `.env` file was created with an `SECRET` environment variable. This is your API secret and must be set as the Authorization header when using the REST API. If you are using the SDK, initialize the SDK with the secret.

```ts theme={null}
const nonci = new Nonci({
  secret: process.env.SECRET,
  hostUri: "https://yournonciinstance.com",
});
```
