> For the complete documentation index, see [llms.txt](https://onairos.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://onairos.gitbook.io/docs/installation.md).

# Installation

#### Installation Instructions

To integrate Onairos into your project, you can use the following installation methods for different platforms.&#x20;

**Install**

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

```bash
npm install onairos@latest
```

{% endtab %}

{% tab title="react-native" %}

```bash
npm install @onairos/react-native@latest    
```

{% endtab %}

{% tab title="Dart(Flutter)" %}

```bash
dart pub install onairos
```

{% endtab %}
{% endtabs %}

**Import**

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

```javascript
import { Onairos, initializeApiKey} from 'onairos';
```

{% endtab %}

{% tab title="react-native" %}

```jsx
import { Onairos, initializeApiKey} from '@onairos/react-native';

```

{% endtab %}

{% tab title="Dart(Flutter)" %}

```dart
import 'package:onairos/onairos.dart';
```

{% endtab %}
{% endtabs %}

*Note*: Verify the package name, as it may be onairos depending on your setup. Ensure React Native is configured in your project.\
\
**Initialization**

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

<pre class="language-javascript"><code class="lang-javascript">await initializeApiKey({
<strong>    apiKey: API_KEY, 
</strong>});
</code></pre>

{% endtab %}

{% tab title="react-native" %}

```jsx
await initializeApiKey({
    apiKey: API_KEY, 
});
```

{% endtab %}

{% tab title="Dart(Flutter)" %}

```dart
import 'package:onairos/onairos.dart';
```

{% endtab %}
{% endtabs %}

[Setup/Usage](/docs/persona.md)


---

# 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://onairos.gitbook.io/docs/installation.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.
