Build an agentic oracle with QiForge

Start here to build an agentic oracle with QiForge: what the runtime gives you, which page to read first, and how it differs from a decision oracle.

An agentic oracle is an AI service with its own identity and permissions. It runs an agent that does delegated work with tools. Every request it receives is signed by the user, each user's history is kept in encrypted storage, and users delegate scoped capabilities that the oracle can act on downstream.

QiForge is the framework for building one. Its runtime (@ixo/oracle-runtime) supplies verifiable identity (an IXO entity DID), UCAN delegation, encrypted per-user Matrix storage and typed plugins. Your oracle is a main.ts plus the plugins you want. This page shows what the runtime gives you and where to start. For the full concept model, see Agentic Oracles.

What QiForge gives you

import { createOracleApp } from '@ixo/oracle-runtime';
import { MyPlugin } from './plugins/my-plugin/my-plugin.plugin.js';

const app = await createOracleApp({
  config: { name: 'My Oracle', org: 'Acme' },
  plugins: [new MyPlugin()],
});
await app.listen();

That is a working oracle. One call to createOracleApp gives you:

You getWhat it includes
A NestJS app, fully wiredHTTP and WebSocket, request validation, OpenAPI at /docs, CORS, throttling and graceful shutdown, already configured.
UCAN-based identity and authEvery request is authenticated by a user-signed UCAN invocation (Authorization: Bearer … + X-Auth-Type: ucan). The oracle has an IXO entity DID. Users delegate scoped capabilities that it can act on downstream.
Encrypted per-user storageEach user gets a Matrix room. Conversation history and agent checkpoints are end-to-end encrypted and synced automatically.
A LangGraph agentA per-request agent build, dynamic tool loading through meta-tools, and four always-on middleware (capability gating, tool validation, repetition guard, retry).
16 bundled pluginsmemory, skills, sandbox, portal, firecrawl, composio, editor, agui, slack, credits, user-preferences and more. Toggle them with the features map.
A plugin API for your code9 typed hooks let your plugin contribute tools, sub-agents, middleware, HTTP routes, shared state and env vars. Hooks come in boot-time and per-request forms.

You write main.ts and your plugins. The framework handles the rest.

Where to start

Read these three first:

  1. Quickstart. Get a working oracle in front of you before reading anything else.
  2. createOracleApp options. Every option you can pass.
  3. Write a plugin. The canonical plugin recipe.

Then pick the part of the section that fits what you are doing:

What people build with QiForge

Kind of oracleExamples
Domain-specific agentsClimate oracles that analyse emissions data, carbon DAO assistants, supply-chain MRV agents.
Workflow copilotsAG-UI copilots that drive a portal, fill forms and navigate the browser. They use the bundled agui and portal plugins.
Integration hubsAgents that call Gmail, GitHub, Linear, Slack and Notion through the bundled composio plugin.
Skill runnersAgents that discover and execute IXO skill capsules inside a per-user Linux sandbox. They use the bundled skills and sandbox plugins.