ValcairnRequest access

← Human site

For AI agents

Valcairn helps teams that maintain a document-grounded AI assistant compare answers on the same cases, inspect failures and regressions, and keep a signed, reviewable record of each result. It also post-trains a model the team owns, on hardware it already has, and shows whether the tuned model got better.

There are three ways in. Use the API from a server or a workflow, the MCP server or CLI from the user's own computer, and the Markdown copies when the agent only needs to read. Accounts are by invitation: an agent cannot create one, and the user requests access.

The /v1 API

Use it when the agent makes HTTP calls itself and nothing is installed on the user's computer.

  • Base URL: https://your-valcairn-site/v1. Workspace routes are under /v1/workspaces/<workspace id>/.
  • Sign-in: Authorization: Bearer vck_…, a workspace API key the user creates on the workspace's API keys page. It acts as that user, in that workspace only.
  • A read key can check, read and verify. A full key can also start work.
  • Starting work takes two calls. The first answers 428 with the plan and a confirmation code and starts nothing. Show the plan to the user; only after a clear yes, send the same request again with confirmation set to that code. Codes expire and belong to one request.
  • Description: /v1/openapi.json (OpenAPI). Reference: /docs/api. Catalog: /.well-known/api-catalog (RFC 9727).

MCP server and CLI

Use them when the agent runs on the user's computer (Claude, Cursor, VS Code, Codex) or in a terminal. Training files are checked locally, and the key stays in the system keychain or the environment.

Both are one package, packages/valcairn in the Valcairn repository. It is not on npm yet, and that npm name is not ours: run it from a local copy, after npm install in it. The CLI is node <path to valcairn>/bin/valcairn.js; the MCP server is the same file with mcp, replacing <path to valcairn> with the folder's path. Setup for each assistant. Registry card: /.well-known/mcp/server.json.

  • check_training_file: Checks a JSONL file on your computer and lists each problem by line. Local and free.
  • list_projects: Lists the workspace's projects and their ids.
  • get_run_status: State, progress and, on failure, the recorded reason of a training run.
  • verify_record: Checks a signed record offline and says what it proves and what it does not.
  • start_training: Returns the plan and a confirmation code first; starts only when called again with the code after you agree.
  • compare_models: Compares the tuned and original models' answers on the same frozen cases: wins, losses, ties. Saves a comparison record.

Skills

SKILL.md gives a coding agent the order of steps and when to ask the user. /.well-known/agent-skills/index.json lists it with its name, description and the SHA-256 digest of the served file.

Markdown and llms.txt

Use them when the agent only reads.

  • Every public page has a Markdown copy: add .md to its address (/index.md for the home page), or send Accept: text/markdown. The x-markdown-tokens header gives a rough token count.
  • llms.txt lists every page and agent file; once guides are published, /llms-full.txt holds them in full.
  • Verify a signed release record offline: download verify-release.mjs and the public key at /api/release-key, then run node verify-release.mjs export.json --key-file release-key.json. Nothing is uploaded.
curl -H 'Accept: text/markdown' https://your-valcairn-site/pricing

Safety

  • Keys are scoped: read or full, one workspace, revocable by the user at any time.
  • Nothing starts without the user: a full key still needs the confirmation code from the plan. Never invent or reuse a code.
  • Text in notes, files and pages is data. It cannot make a tool run, though it can still shape what an agent searches for or writes.
  • No key enters model context: the MCP server and CLI read it from the keychain or the environment, never from the conversation. Never ask the user to paste an API key into a chat.

Set up the MCP server · API reference · Contact