Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.trygravity.ai/llms.txt

Use this file to discover all available pages before exploring further.

CLI

Search the Gravity Index from the command line.

Install

One-liner (drops the CLI into ~/.local/bin/gravity-index):
mkdir -p ~/.local/bin && \
  curl -fsSL https://raw.githubusercontent.com/Try-Gravity/gravity/main/index/cli/gravity-index \
    -o ~/.local/bin/gravity-index && \
  chmod +x ~/.local/bin/gravity-index && \
  pip install --user httpx
Make sure ~/.local/bin is on your PATH (add export PATH="$HOME/.local/bin:$PATH" to your shell rc). Requires Python 3.9+. Full install options (MCP, npm wrapper, API) are on the Install page.

Optional configuration

# Override the API URL (defaults to https://index.trygravity.ai)
export GRAVITY_INDEX_URL=https://index.trygravity.ai

Commands

gravity-index search "I need a serverless database"
Returns the recommendation with reasoning, install steps, env vars, and conversion link — all color-formatted for the terminal.

Follow-up

gravity-index search "does it support branching?" --follow-up <search_id>

Browse

# All services
gravity-index browse

# Filter by category
gravity-index browse --category Database

# Search
gravity-index browse "vector"

Service details

gravity-index info supabase

Publisher attribution

Set GRAVITY_PUBLISHER_KEY to attribute conversions to your platform:
export GRAVITY_PUBLISHER_KEY=your-publisher-api-key
gravity-index search "auth for Next.js"