Skip to main content
Experimental API - Context Connectors is experimental and subject to breaking changes.

Global Requirements

All commands require authentication. Set the AUGMENT_SESSION_AUTH environment variable to the session JSON from auggie token print:

Data Storage

By default, indexes are stored at ~/.augment/context-connectors. Override with --store-path or the CONTEXT_CONNECTORS_STORE_PATH environment variable.

Commands

index - Index a data source

Index code from various sources using source-specific subcommands.

Subcommands


index github

Environment: Requires GITHUB_TOKEN with repo read access.

index gitlab

Environment: Requires GITLAB_TOKEN with repo read access.

index bitbucket

Environment: Requires BITBUCKET_TOKEN with repo read access.

index website


Store Options (all index subcommands)

S3 Configuration (environment variables):

Examples


list - List local indexes

List all indexes in the local store.

Optional Options

Examples


delete - Delete a local index

Delete an index from the local store.

Arguments

Optional Options

Examples


search - Search indexed content

Search indexed content and answer questions using an LLM.

Arguments

Required Options

Optional Options

Index Spec Formats

Examples


agent - Interactive AI agent

Run an interactive AI agent that can search and read your codebase.

Arguments

Required Options

Optional Options

Environment: Requires provider-specific API key:
  • Augment: Uses existing Augment credentials (via augment login or environment variables)
  • OpenAI: OPENAI_API_KEY
  • Anthropic: ANTHROPIC_API_KEY
  • Google: GOOGLE_API_KEY
Default Models:
  • Augment: claude-sonnet-4-5
  • OpenAI: gpt-5-mini
  • Anthropic: claude-haiku-4-5
  • Google: gemini-3-flash-preview

Examples


mcp stdio - Run as MCP server (stdio)

Run as an MCP server using stdio transport for integration with MCP-compatible agents like Claude Desktop.

Optional Options

When no --index is specified, all indexes in the default store are exposed.

Examples


mcp http - Start MCP HTTP server

Start an MCP server accessible over HTTP for remote clients.

Optional Options

Environment: Can use MCP_API_KEY instead of --api-key flag.

Examples


Common Patterns

Using S3 Storage

All commands support S3 storage for team sharing:

Using S3-Compatible Services

For MinIO, DigitalOcean Spaces, Cloudflare R2, etc.:

File Operations

The --search-only flag controls whether file operations are available:
  • Without --search-only: Enables search, listFiles, and readFile tools
  • With --search-only: Only search tool is available

Troubleshooting

”Index not found”

Make sure the index spec points to the correct location (name, path, or S3 URL).

”AUGMENT_SESSION_AUTH is not set”

Set the required environment variable:

S3 Access Denied

Verify your AWS credentials and bucket permissions:

GitHub/GitLab/BitBucket Authentication

Make sure the appropriate token is set: