Docs/Getting Started/Quickstart

Quickstart

Get NxtOne running in under five minutes with a single command and one config block.

This guide adds the NxtOne SDK to a new or existing service. The SDK runs inside your application's own process — there is no NxtOne container, sidecar, or daemon to deploy — and sends behavioral events straight to your NxtOne dashboard over HTTPS.

First Phase Support: During our initial release, we officially support Java 17+, Node.js (TS/JS) 20.6+, and Python 3.10+.

Choose Your Language Setup

1

Install the SDK

Add the SDK as a regular dependency of your application:

Java (Spring Boot)
xml
<dependency> <groupId>ai.nxtone</groupId> <artifactId>nxtone-agent-spring-boot-starter</artifactId> <version>${nxtone.version}</version> </dependency>

Set nxtone.version to the latest release. Using Gradle, or not on Spring Boot? See Installation.

Python (FastAPI / Flask)
bash
pip install nxtone
Node.js (TypeScript / NestJS)
bash
npm install @nxtone/agent
2

Activate the SDK

Java (Spring Boot)

Nothing to do — the starter attaches the SDK when your application starts. No annotation and no -javaagent flag.

Python (FastAPI / Flask)

Apply the @nxtone.NxtOneAgent decorator to your entry point:

python
import nxtone @nxtone.NxtOneAgent def main(): # start your application here ... if __name__ == "__main__": main()
Node.js (TypeScript / NestJS)

No code change is needed if you start Node with --import @nxtone/agent/register (step 3). If you prefer to initialize in code, wait for nxtone.init() before your server starts listening:

typescript
import * as nxtone from '@nxtone/agent'; async function bootstrap() { await nxtone.init({ projectId: 'api-gateway' }); // ...create your app, then call listen() } bootstrap();

NestJS apps also register NxtOneModule.forRoot() from @nxtone/nest — see Node.js (NestJS).

3

Set credentials and run

Set your API key from the NxtOne dashboard and a project ID for this service, then start your app the way you normally do:

bash
export NXTONE_API_KEY="<your-api-key>" export NXTONE_PROJECT_ID="payment-service" # Java (Spring Boot) java -jar target/app.jar # Python python main.py # Node.js (or plain "node dist/main.js" if you call nxtone.init()) node --import @nxtone/agent/register dist/main.js
Check the startup logs. The SDK writes to your service's stderr: Java prints nxtone: agent attached (pid=…) followed by nxtone: application ready — capture window open, and Node.js prints NXTONE_SESSION_ID=…. Python logs only at warn level by default, so expect little output. Send a request and its execution flow appears in your dashboard under the project ID you set. A hint that the API key is missing means the SDK is running as a no-op.