Documentation

forgein docs

Everything you need to get your AI tools running with live context from forgein.

New here? Start with the Quickstart →
Install the CLI, sync your first memory files, and see your context in Claude Code — in under 10 minutes.
Getting started
QuickstartStart here

Create an account, install the CLI, sync your first memory files, and connect to Claude Code in under 10 minutes.

API tokens

Create a Bearer token (fg_…) to authenticate the CLI or your own scripts against the forgein API.

Adapter setup
Claude Code

Full memory sync via /forgein mem sync, all /forgein CLI commands, and skills integration for Claude Code.

💬ChatGPT

Generate two-field Custom Instructions from your context, or connect forgein as a Custom GPT action.

GitHub Copilot

Write .github/copilot-instructions.md from your memory context — paste or auto-push via API.

Cursor

Generate .cursorrules for every repo, or connect live context via the forgein MCP server.

Windsurf

Generate .windsurfrules for Cascade, or connect live context via the forgein MCP server.

Gemini

Generate a system prompt for your Gem — paste into the Gem configuration panel.

MCP Server

JSON-RPC 2.0 server compatible with any MCP client. Auto-discovery at /.well-known/mcp.

API reference
{ }Full API referenceReference

All endpoints with curl examples: adapters, memory CRUD, webhooks, tokens, MCP, and auto-discovery.

Webhooks

Receive a signed memory.updated event at your endpoint whenever a memory file changes.

Custom GPT action schema

OpenAPI 3.1 schema at /api/adapters/chatgpt/action-schema — import into any Custom GPT to read and write forgein memory mid-conversation.

SDK & CLI
CLI install & commands

One-command install drops the /forgein skill into Claude Code. auth, mem sync, optimize, sec — all subcommands included. macOS and Linux.

@forgein/adapter-sdk

TypeScript SDK: ForgeinClient, callMcp<T>, listProjects, getFile, putFile, search. Works in Node.js and edge runtimes.