Quick Start
Get up and running with Riven AI in under 5 minutes.
Prerequisites
Before you begin, make sure you have the following:
- Node.js 22+ — Required for the CLI and TypeScript SDKs.
- Docker 24+ — Used for building and running container images locally.
- kubectl 1.28+ — For interacting with your Kubernetes cluster.
You will also need a Riven AI account. Sign up at riven-ai.dev if you do not have one yet.
Step 1: Install the CLI
Install the Riven CLI using the install script:
curl -fsSL https://www.riven-ai.dev/install.sh | bashVerify it installed correctly:
riven --version@riven-ai/cli 0.6.6Step 2: Authenticate
Log in to the Riven platform. This opens your browser for OAuth-based sign-in:
riven auth loginOpening browser for authentication...
✓ Logged in as you@example.com (org: riven-ai)
Credentials saved to ~/.config/riven/credentials.jsonStep 3: Create a Project
riven init writes workspace configuration into the current directory:
mkdir my-project && cd my-project
riven initThat creates .rivenrc.json, which records your registry URL and org so later
commands do not need them passed each time.
To scaffold an actual gRPC service, use service create:
riven service create my-service --lang node --team platformThe generated project includes:
riven.config.ts— Project configuration file.src/— Your application source code.Dockerfile— Container build definition.helm/— Helm chart for Kubernetes deployment.
Step 4: Deploy
Deploy your project to your Riven cluster:
riven publish
riven dev-center service deploy <service> --tag <full-sha> -yBuilding container image...
✓ Image built: my-project:1.0.0-a1b2c3d
Pushing to registry...
✓ Pushed to <account-id>.dkr.ecr.us-east-1.amazonaws.com/my-project:1.0.0-a1b2c3d
Deploying to cluster production (namespace: default)...
✓ Deployment complete
Service URL: https://my-project.riven-ai.devTroubleshooting
riven: command not found
The CLI binary is not on your PATH. If you used the install script, restart your terminal or run:
source ~/.bashrc # or ~/.zshrcIf you installed via npm, ensure your global npm bin directory is in your PATH:
export PATH="$(npm config get prefix)/bin:$PATH"Error: Not authenticated
You need to log in before deploying. Run riven auth login and complete the browser flow. For CI environments, set the RIVEN_TOKEN environment variable instead.
Error: Docker daemon not running
The CLI requires Docker for building images. Start Docker Desktop or the Docker daemon:
# macOS / Windows
open -a Docker
# Linux
sudo systemctl start dockerNext Steps
You have successfully deployed your first Riven project. Here is what to explore next:
- Configuration — Customize your project settings and environment variables.
- Authentication — Set up tokens for CI and multi-org workflows.
- AI Platform — Learn how to deploy and serve AI models.
- CLI Reference — Explore all available CLI commands for proto management, deployments, and tasks.