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 42From weekend vibe coders to enterprise architects, use the tools you already work in to manage and operate your Gravity Rail workflows, journeys and members.
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 42Integrate 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);Read and update workspace resources directly. Receive events by webhook.
GET /api/v2/w/{workspace_uuid}/workflows
Authorization: Bearer $GRAVITY_RAIL_API_KEYOne 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/completionsCreate a client with an API key, then call the workspace methods you need.
SDK reference ↗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 });Start by listing the workspaces available to your API key. Workspace routes use the workspace UUID in the path.
API reference ↗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"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 →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"
claudeList Workflows, inspect Assistants, and make changes with the same commands in local development, staging, and production.
@gravity-rail/cli on npm ↗$ npx @gravity-rail/cli login
$ npx @gravity-rail/cli workflows list -w $WORKSPACE_ID
$ npx @gravity-rail/cli get-started --format llm$ npm install -g @gravity-rail/cli
$ gr login --env prod
$ gr whoami
$ gr workspaces list
$ gr concierge chat --allow-writeThe channels your Assistants speak over, the webhooks that tell your systems what happened, and an MCP server at api.gravityrail.com/mcp that lets Claude or ChatGPT work in your workspaces as you, after you sign in.
Embed an Assistant on a website.
Read the guide ↗ChannelBring Assistant interactions into Slack threads.
Read the guide ↗ChannelConnect an Assistant to Discord.
Read the guide ↗ChannelSend and receive messages through a configured phone integration.
Read the guide ↗ChannelBuild phone and IVR experiences.
Read the guide ↗ChannelHandle email inside governed Workflows.
Read the guide ↗ConnectorReceive events from Messages, Tasks, and Workflow runs.
Read the guide ↗ProtocolConnect Claude, ChatGPT or another MCP client. It works as you, with your role.
Read the guide ↗Browse all integrations or let us know what you need to connect.
Choose the interface or channel you’re using.
Start with $25 in free credits and ship your first workflow with the CLI, SDK, REST API, MCP, or Inference API.
or email us at sales@gravityrail.com