import { Auggie } from "@augmentcode/auggie-sdk";
const client = await Auggie.create({
// Path to Auggie executable (default: "auggie")
auggiePath: "/path/to/auggie",
// Working directory for the Auggie process (default: process.cwd())
workspaceRoot: "/path/to/workspace",
// Eg: "haiku4.5" | "gpt-5" | "sonnet4.5" | "sonnet4"
model: "sonnet4.5",
// Allow codebase indexing (default: true)
allowIndexing: true,
// API key for authentication (optional, sets AUGMENT_API_TOKEN)
apiKey: "your-api-key",
// API URL (optional, sets AUGMENT_API_URL)
apiUrl: "https://api.augmentcode.com",
// Custom tools to provide to Auggie (optional)
tools: {
// Your custom tools here
},
// Rule file paths (optional)
rules: ["/path/to/rules.md"]
});
// Use the client
const response = await client.prompt("Your question here");
console.log(response);
await client.close();