Skip to main content

Installation

npm install @augmentcode/auggie-sdk

Authentication

The Auggie SDK supports multiple authentication methods:
  1. Passing API Key Directly (Recommended) - Provide apiKey parameter when initializing
  2. Using Environment Variables - Set AUGMENT_API_TOKEN and AUGMENT_API_URL environment variables
  3. Using settings.json - Store credentials in settings.json file

Finding Your API keys

Coming Soon: Service accounts and team-level tokens will be available for production deployments and CI/CD environments.
Running auggie token print will print your API keys:
{
  "accessToken": "ABC-XYZ-123", // Use as apiKey
  "tenantURL": "https://...",   // Use as apiUrl
  ...
}

Quick Start

import { Auggie } from "@augmentcode/auggie-sdk";

const client = await Auggie.create({ model: "sonnet4.5" });
const response = await client.prompt("What files are in the current directory?");
console.log(response);
await client.close();

Key Features

Both SDKs provide:
  • High-level API - Simple interface for common tasks
  • Multiple Output Modes - String responses, typed returns, streaming, and more
  • Codebase Awareness - Automatic indexing and context from your workspace
  • Custom Tools - Extend Auggie with your own tools and integrations