Authenticate
Learn about the different authentication modes and how to manage tokens securely.
This guide walks you through downloading, installing, and verifying the nara Edge Connector on your workstation or server.
Before installing, ensure your system meets the following requirements:
| Requirement | Details |
|---|---|
| Node.js | Version 18 or later |
| Operating system | Windows 10+, macOS 12+, or Linux (Ubuntu 20.04+, Debian 11+, RHEL 8+) |
| Network | Outbound WebSocket access to the nara platform server |
| Disk space | 100 MB minimum for the CLI and runtime, plus space for tool bundles |
| Permissions | Write access to the installation directory; admin/root for autostart configuration |
The simplest setup path is through the webapp.
Sign in to the nara webapp as an organization administrator.
Navigate to Admin > Edge Connector.
Click Download Edge Connector for your platform.
Extract the archive into your preferred installation directory.
Keep the included configuration file in place unless your deployment process requires custom paths or environment overrides.
After downloading and extracting the Edge Connector, follow these steps to get up and running.
Authenticate with the nara platform
Run the authentication command to link this Edge Connector to your organization:
./edge-connector auth --browserThis opens your default browser for OAuth authentication. After you log in and authorize, the token is saved locally. Alternatively, provide a token directly:
./edge-connector auth --token <YOUR_JWT_TOKEN>Generate tool implementations when needed
If you are building custom edge tools, scaffold boilerplate code for the tools registered in your organization:
./edge-connector generate --language typescript --tool <tool_name> --output ./custom-implementationsThis connects to the nara platform server, fetches the tool’s parameter and result schemas, and generates a TypeScript implementation file with the correct types.
Implement your tool logic
Open the generated file in your editor and implement the handler function. The generated code includes typed parameters, a result template, and error handling scaffolding.
Test locally
Start the Edge Connector in local test mode to verify your implementation:
./edge-connector run --implementations ./custom-implementations --url ws://localhost:3001Test mode disables state persistence and autostart, making it safe to iterate quickly.
Package and upload
When your implementation is ready, package it into a bundle and upload it to the platform:
./edge-connector upload --implementations ./custom-implementationsThis compiles TypeScript, creates a .tgz archive, and uploads it. Connected Edge Connectors will automatically sync the new bundle.
After installation and first-time setup, your Edge Connector directory looks like this:
edge-connector/ config.json # Runtime configuration auth-token.json # Saved authentication token custom-implementations/ # Your tool implementation source code tools/ # Individual tool files my_tool.ts # TypeScript tool implementation other_tool.ref.json # Reference to server-hosted tool version package.json # Dependencies for your implementations dist/ # Compiled output (generated during build) index.js # Auto-generated tool index tools/ my_tool.js # Compiled tool artifacts/ # Bundle archives created by the package command runtime/ # Edge Connector runtime (do not modify) cli/ # CLI commands and generators (do not modify)Confirm the Edge Connector is installed correctly:
./edge-connector --versionThis prints the CLI version (e.g., 0.3.0). If you see a version number, the installation is complete.
To verify authentication and platform access:
./edge-connector bundle listThis fetches and displays the bundles registered for your organization. If authentication is configured correctly, you will see your bundle list (or a message indicating no bundles exist yet).
Authenticate
Learn about the different authentication modes and how to manage tokens securely.
Build your first tool
Generate, implement, and test a custom tool on the Edge Connector.