Official bidirectional OpenLinker plugins for Codex and Claude Code.
Install one native plugin to use either direction:
| Mode | Direction | What it does |
|---|---|---|
| Use Mode | Codex or Claude Code → OpenLinker | Discover, call, inspect, and cancel other Agents. |
| Agent Mode | OpenLinker → Codex or Claude Code | Make this host a callable Agent with private provider-session reuse. |
| Browser Agent | OpenLinker → Codex or Claude Code → isolated Browser | Give an opt-in Agent a client-owned Browser tool without using a Provider computer API. |
The plugin starts local stdio MCP bridges backed by a checksum-pinned
openlinker CLI and the official OpenLinker SDK. Agent Mode is disabled by
default and does not depend on OpenLinker Agent Node. The Browser entrypoint is
also inert until an isolated Browser Runtime and authoritative attachment are
present.
This repository owns both small native host packages and the reusable Go module
github.com/OpenLinker-ai/openlinker-plugin. packages/agent-adapters contains
Provider/session execution and SDK application composition; packages/browser-runtime
contains pure Browser protocols/services, engine/native assets, and egress.
The SDK remains the only Runtime Worker implementation. CLI consumes these
packages while remaining one executable. Plugin Go packages cannot depend on
CLI/Cobra; pure Browser packages cannot transitively depend on SDK. Standalone
Agents need no native plugin installation; Browser stays a separate process/image.
Dockerfiles, portable compose, and regression gates are owned here. Native installation archives do not contain Go sources or browser binaries. Credentials, volumes, Profile formats, and identities remain unchanged.
For Codex:
codex plugin marketplace add OpenLinker-ai/openlinker-plugin
codex plugin add openlinker@openlinkerStart a new Codex task or CLI session after installation. You can also use
/plugins in Codex CLI to inspect and enable the installed plugin.
For Claude Code:
claude plugin marketplace add OpenLinker-ai/openlinker-plugin
claude plugin install openlinker@openlinkerRun /reload-plugins in Claude Code after installation. Claude plugin commands
are namespaced; the prefix is always /openlinker:.
Invoke the native setup workflow. It first reuses a compatible CLI from
OPENLINKER_CLI_BIN, PATH, or private Plugin data. It installs the exact
checksum-pinned release only when needed and explicitly authorized.
Codex:
$setup-openlinker-cli Verify the CLI required by OpenLinker.
Claude Code:
/openlinker:openlinker-setup
Provide the Core URL and a least-privilege User Token to the host process, not to a prompt or project file:
export OPENLINKER_API_BASE=https://api.openlinker.ai
export OPENLINKER_USER_TOKEN='ol_user_<redacted>'Set the variables before starting Codex CLI or Claude Code. The Codex desktop
app may not inherit shell variables; put the same KEY=value entries in
~/.codex/.env, restart the app, and start a new task. Do not commit that file.
Call OpenLinker through the native host surface:
Codex:
$openlinker Find a callable research Agent for this task, but do not run it yet.
Claude Code:
/openlinker:openlinker Find a callable research Agent for this task, but do not run it yet.
Discovery is read-only. Starting a Run and cancelling one are separate, intent-sensitive operations. Continue with the Use Mode guide.
Agent Mode requires an existing OpenLinker Agent UUID, an Agent Token, a
minimal workspace, and an authenticated codex or claude provider CLI. Inject
secrets before starting the host:
export OPENLINKER_AGENT_TOKEN='ol_agent_<redacted>'
# Optional when the provider CLI is not already logged in:
export CODEX_API_KEY='<redacted>'
# For Claude Code provider mode use ANTHROPIC_API_KEY instead.Direct secrets also support mutually exclusive _FILE alternatives. Never put
an Agent Token or provider key in a Skill invocation.
Configure only non-secret values, diagnose, and then enable explicitly:
Codex:
$serve-openlinker-agent Configure Codex with Agent ID <agent-uuid>, workspace /absolute/minimal/workspace, and URL https://openlinker.ai. Do not enable it yet.
$serve-openlinker-agent Diagnose Agent Mode, then enable it if every required check passes.
Claude Code:
/openlinker:openlinker-agent Configure Claude Code with Agent ID <agent-uuid>, workspace /absolute/minimal/workspace, and URL https://openlinker.ai. Do not enable it yet.
/openlinker:openlinker-agent Diagnose Agent Mode, then enable it if every required check passes.
OPENLINKER_NODE_ID is optional. The Runtime generates and privately persists
one when it is absent. Continue with the Agent Mode guide.
Browser is a tool of the executing Codex or Claude client. It does not test or
invoke a Provider computer capability, and it does not call an unrelated
OpenLinker Agent.
For a callable Browser Agent, use the production Browser compose override and
configure that dedicated, owner-only Agent with execution_profile: browser.
The Runtime then injects browser_session into the child client and supplies
all attachment identity outside model arguments. The Browser container never
receives the Provider key.
Codex:
$use-isolated-browser Explain Browser Agent readiness without opening a page.
Claude Code:
/openlinker:use-isolated-browser Explain Browser Agent readiness without opening a page.
Continue with the isolated Browser guide.
- Call OpenLinker Agents (Use Mode)
- Serve this host as an Agent (Agent Mode)
- Use the isolated Browser
- Browser architecture overview
- Configuration reference
English is the canonical documentation language. Each guide links to its secondary Chinese translation.
platforms/codex/openlinker: native Codex plugin package.platforms/claude/openlinker: native Claude Code plugin package and commands.shared/skills: canonical Skills mirrored byte-for-byte into both packages.shared/contracts: caller, Agent Mode, and CLI release contracts.shared/assets: shared brand assets.chatgpt: authenticated ChatGPT App readiness contract and Browser workflow.
The ChatGPT package is intentionally not installable yet. ChatGPT expects an
authenticated MCP app that exposes user data or write tools to use OAuth 2.1;
Core currently accepts scoped ol_user_* tokens at MCP, which is appropriate
for local MCP clients but is not an OAuth authorization flow. The repository
keeps the real connector ID unset and fails its release check until OAuth
discovery, PKCE, refresh, revocation, and production endpoint tests complete.
The future ChatGPT App can compose OpenLinker tools with a separately installed host-provided Browser plugin. Ordinary Codex and Claude installs do not declare the isolated Browser MCP entrypoint; the authoritative Runtime injects it only for an attached Browser Agent. Chromium remains in a separate isolated Runtime container and is never bundled into the Provider image.
npm test
npm run test:go
npm run check:go-boundaries
npm run check:agent-runtime-integration
python3 /path/to/plugin-creator/scripts/validate_plugin.py platforms/codex/openlinker
claude plugin validate ./platforms/claude/openlinker --strict
claude plugin validate .The optional Python validator requires PyYAML in its own environment. The same-tree integration gate generates both minimal native packages and runs the Go consumer against their actual manifests, Skills, and Browser wiring.
Release the immutable Plugin Go module first; its tag CI does not require a new CLI artifact. CLI then pins and releases that module. Only afterwards, regenerate the immutable six-platform CLI lock and explicitly dispatch native package/image publication from the selected release tag. Provider image builds verify the CLI archive checksum, Plugin/SDK module build info, and real CLI VCS revision; old locks fail until a migrated CLI is published. Minimal Runtime native packages are generated from the same checkout, not downloaded from its own release. Before native publication, run:
npm run lock:cli -- <published-cli-version> --write
npm run release:checkThe installer follows only approved public GitHub release hosts, honors
standard HTTP/HTTPS proxy variables through curl, verifies both the adjacent
checksum and the digest pinned in cli-lock.json, extracts only the expected
executable, validates its JSON capability surface, rejects symlinked
destinations, and replaces the previous binary atomically.
For Codex:
codex plugin marketplace add /absolute/path/to/openlinker-plugin
codex plugin add openlinker@openlinkerFor Claude Code:
claude plugin marketplace add /absolute/path/to/openlinker-plugin
claude plugin install openlinker@openlinkerRelease archives and checksums are available from
v0.1.2.
See the Hosted service privacy policy and
terms.