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

# Getting Started

### Creating a Project

Access our [Dev Portal](https://app.orda.network/) and create a project for your organization. You will be given the **Client ID** and **Client Secret** for authentication.

### Installation

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

```bash
npm install @ordanetwork/sdk
```

{% endtab %}

{% tab title="pnpm" %}

```bash
pnpm add @ordanetwork/sdk
```

{% endtab %}

{% tab title="yarn" %}

```bash
yarn add @ordanetwork/sdk
```

{% endtab %}
{% endtabs %}

**Requirements:** Node.js 18.0.0+

### Initialize SDK

```typescript
import { OrdaSDK } from '@ordanetwork/sdk';

const orda = new OrdaSDK({
  clientId: process.env.ORDA_CLIENT_ID,
  clientSecret: process.env.ORDA_CLIENT_SECRET
});
```

### Module Formats

The orda SDK is compatible with ES Modules and CommonJS:

{% tabs %}
{% tab title="ES Modules" %}

<pre class="language-typescript"><code class="lang-typescript"><strong>import { OrdaSDK } from '@ordanetwork/sdk';
</strong></code></pre>

{% endtab %}

{% tab title="CommonJS" %}

```javascript
const { OrdaSDK } = require('@ordanetwork/sdk');
```

{% endtab %}
{% endtabs %}

### Security

{% hint style="warning" %}
⚠️ Never expose credentials in frontend code. Always use environment variables on your backend server.

Example (backend):

{% code title="Backend initialization" %}

```javascript
const orda = new OrdaSDK({
  clientId: process.env.ORDA_CLIENT_ID,
  clientSecret: process.env.ORDA_CLIENT_SECRET
});
```

{% endcode %}
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.orda.network/developers/sdk/getting-started.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
