Use the tools you already love.

From weekend vibe coders to enterprise architects, use the tools you already work in to manage and operate your Gravity Rail workflows, journeys and members.

CLI. SDK. API. Inference.

01 · CLI

A CLI built for humans and coding tools

Manage Workflows, Assistants, Members, integrations, and workspace settings from one terminal interface.

$ gr workflows list -w $WORKSPACE_ID$ gr workflows get -w $WORKSPACE_ID --id 42
02 · SDK

Full-featured TypeScript SDK

Integrate Gravity Rail into any Node.js application.

import { GravityRailClient } from '@gravity-rail/sdk';

const client = new GravityRailClient(apiKey, apiUrl);
const workflows = await client.getWorkflows(workspaceId);
03 · API

Call the REST API

Read and update workspace resources directly. Receive events by webhook.

GET /api/v2/w/{workspace_uuid}/workflows
Authorization: Bearer $GRAVITY_RAIL_API_KEY
04 · Inference API

Run your coding agent on our models

One organization endpoint, compatible with OpenAI and Anthropic clients. The key reaches models only, not workspace data.

POST /api/v2/o/{org_uuid}/inference/v1/messages
POST /api/v2/o/{org_uuid}/inference/v1/chat/completions

Use Gravity Rail from Node or TypeScript.

Create a client with an API key, then call the workspace methods you need.

SDK reference ↗
TypeScript SDK
npm install @gravity-rail/sdk

import { GravityRailClient } from '@gravity-rail/sdk';

const client = new GravityRailClient(
  process.env.GRAVITY_RAIL_API_KEY,
  'https://api.gravityrail.com'
);

const page = await client.getWorkspaces({ pageSize: 20 });

Call the API from any language.

Start by listing the workspaces available to your API key. Workspace routes use the workspace UUID in the path.

API reference ↗
REST API
curl https://api.gravityrail.com/api/v2/w/ \
  -H "Authorization: Bearer $GRAVITY_RAIL_API_KEY" \
  -H "Content-Type: application/json"

curl https://api.gravityrail.com/api/v2/w/$WORKSPACE_ID/workflows \
  -H "Authorization: Bearer $GRAVITY_RAIL_API_KEY"

Point Claude Code at Gravity Rail.

An organization admin creates an Inference API key. Your coding agent then runs on model connections covered by our BAA, billed at your plan’s rates. The key grants no access to workspace data.

Create a workspace →
Claude Code
export ANTHROPIC_BASE_URL="https://api.gravityrail.com/api/v2/o/$ORG_UUID/inference"
export ANTHROPIC_AUTH_TOKEN="$GR_INFERENCE_API_KEY"
export CLAUDE_CODE_USE_BEDROCK=0
export ANTHROPIC_MODEL="claude-5-5-sonnet"
claude

Log in and inspect a workspace from your terminal.

List Workflows, inspect Assistants, and make changes with the same commands in local development, staging, and production.

@gravity-rail/cli on npm ↗
quickstart
$ npx @gravity-rail/cli login
$ npx @gravity-rail/cli workflows list -w $WORKSPACE_ID
$ npx @gravity-rail/cli get-started --format llm
CLI quickstart
$ npm install -g @gravity-rail/cli
$ gr login --env prod
$ gr whoami
$ gr workspaces list
$ gr concierge chat --allow-write

Create a workspace and start building.

Start with $25 in free credits and ship your first workflow with the CLI, SDK, REST API, MCP, or Inference API.