/opengeni:opengeni-setupfrom Opengeni
Guides setting up Opengeni for a product: browser-assisted organization onboarding, creating a full-access API key, embedding a chat agent, wiring product tools via OpenAPI or MCP, and optionally configuring schedules, webhooks, credentials, and usage budgets.
Ships in Opengeni. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
You are the product's coding agent. Get the product a working Opengeni chat agent, then wire the product's own tools into it. The embedding code follows the embedding skill. This skill is not a runtime Skill for the product's end-user agent.
When the opengeni MCP tools are available (the Opengeni plugin connects
them), use them to inspect and act on the user's Opengeni organization:
opengeni_actions_search finds an action, opengeni_action_describe shows its
input, opengeni_action_call runs it. Prefer them over hand-written API calls.
The first use opens a browser sign-in where the user chooses what the agent may
access. The product's server still needs its own organization API key (step 2).
The REST/SDK walkthrough has the exact request bodies, verification calls and recovery rules; read the section for a step before executing it. Never invent a route, SDK method or permission. The SDK example is typechecked against this repo.
The default path is steps 1–4: a verified chat, then verified product tools. The user may stop after the working chat (step 3); otherwise continue to tools. Steps 5–6 run only when the product or request needs them.
Inspect the product's auth, tenancy, existing Opengeni config, runtime, API (OpenAPI document or MCP server), environment-file conventions and deployment. Reuse its sharing boundaries and derive the organization name from the product. Don't ask about things the product or request already settles.
Target: https://app.opengeni.ai (use https://staging.app.opengeni.ai only
when asked to test against staging). Do not use a Personal workspace as the
product's workspace.
If the Opengeni MCP tools are connected, use them: the user already signed in when connecting. Otherwise ask the user to sign in or sign up at the target app (in your browser if you have one).
If onboarding asks how they'll use Opengeni, choose Run agents in the cloud and name the organization after the product, or reuse the intended existing organization (a pending invitation wins; don't create a second one).
Create a full-access organization API key with a 30-day expiry, so setup and
testing need no further UI: with the MCP action createOrganizationApiKey, or
in Organization settings → Developer → Create API key (the user can copy it
to you). Put it in the product's server-only .env (or its secret manager) as
OPENGENI_API_KEY. It is only used by the server; never ship it in browser code
or commit it.
Verify /v1/access/me: the credential must be a full-access organization API
key for the intended organization. An empty workspaceGrants is normal for an
organization key.
Follow the embedding skill's default integration:
one server route from createSessionProxyRoute, whose resolve authenticates
the product's user and returns { user, tenant } (one workspace per tenant) or
{ user } (one per user). The proxy creates workspaces and memberships on first
use; explicit ensureWorkspace/asUser provisioning is an advanced option,
not a setup step. Its createSession hook sets the canonical product agent:
agent: { identity: "You are Acme's assistant. Friendly and brief.", capabilities: "none" },
sandboxBackend: "none",
capabilities: "none" already limits the agent to the session's own tools plus
asking the user, with no Opengeni workspace tools, connectors or bundled
Opengeni guides, so do not add empty tools, firstPartyMcpTools,
bundledSkillIds or agentLearning overrides. The renderer defaults to
"opengeni" for OpenGeniChat; set renderer: "markdown" only for a UI that
renders plain Markdown. A shell-equipped coding agent is not a reason to give
the end-user agent a sandbox.
Run the product, sign in, ask a real question and read the streamed answer. Successful HTTP creation alone is not a working chat. Confirm the reply comes from the intended persona and the chat survives a reload. If the user only wanted the chat, stop here and report that product tools are not wired.
Prefer what the product already has. In order:
createSession
hook (mcpServers + tools), or expose a per-user endpoint through the
proxy's toolServer (see the embedding skill's "Tools and auth"
reference).instanceKey in the tenant's workspace (from
og.workspaceId({ tenant }), the same workspace the proxy uses) and select
it by server id in tools.Select only intended operations. Leave every write/destructive operation
approval-gated unless the request explicitly allows unattended writes; tool
selection and approval settings never give the product API more authority.
Inline OpenAPI documents are supported; localhost is not reachable from the
hosted deployment without a public HTTPS tunnel. The walkthrough distinguishes
MCP approval policy from API Integration autoApprovedTools; do not
substitute one for the other.
Verify in the embedded chat: at least one read tool actually called with the
right user's data and a useful result, and a write that asks for approval
first. An authorized backend getSessionConfiguration(workspaceId, sessionId)
read returns effectiveTools, the catalog of what the agent can use. Compact
chat reads omit that catalog; the default SDK response stays full. Never approve an
unrequested business mutation as a test.
Only when requested. Schedules use an installed workspace server id, not an
inline mcpServers entry; create them paused, check prompt, tool ids, model,
time zone and status, then activate. For inbound product events, use an event
source and a paused schedule with event triggers. For outbound notifications, create a
workspace webhook, keep its signing secret (returned once) in the product's
config, and send a signed test delivery.
If the product needs short-lived per-run credentials, PUT its workspace credential provider, keep the signing secret from the first response, and verify a signed test request. The provider must independently authorize the signed workspace/session and exact targets; informational user/service labels grant nothing.
A usage ceiling uses workspace allowance state and its exact lifecycle version. Amounts are integer USD micros; a ceiling is not a prepaid balance or credit purchase. Do not guess a spending amount or alter organization billing.
Report ids, passed checks, skipped features and any remaining blocker, and state plainly whether product tools are wired (which tools, which were verified with a real call, which writes ask for approval). Do not claim a callback or tool works after metadata-only verification. Follow the walkthrough's error table; never “fix” a 403 by widening the key.
A short-lived setup key expiring is intentional; before shipping a long-lived integration, provision a separately scoped runtime credential through the authenticated organization administrator, not by granting key-management permission to the setup key. Read the embedding skill's production checklist before production.
Carry the appearance choice into the embed: custom-branded embeds should match host fonts/colors/spacing/radius/theme with no UI-owned Opengeni branding; stock shipped UI should need no cosmetic host CSS. Expect polished desktop around 1440px/mobile around 390px and supported light/dark. Stock defects belong to package React/CSS, not host workarounds. These are expectations, not a passed UI qualification or a reason to broaden setup permissions.
For staging verification, delete only resources recorded as created by this run, verify removal, and revoke its disposable key through the authenticated administrator. Never clean up a reused product workspace or another run's resources.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub cloudgeni-ai/opengeni --plugin opengeni3 skills in this plugin
/build-with-opengeniAdd Opengeni agents to the user's own product, backend, website, or app with @opengeni/sdk and @opengeni/react: the packaged chat UI behind one server route, per-tenant workspaces, and the product's own tools. Also builds a small local demo web app with an Opengeni chat. Use when the user wants AI agents or an assistant in an app they are building, or asks for a local Opengeni chat demo. Not for offloading the current coding task (use offload-to-opengeni) or for changing Opengeni itself./offload-to-opengeniRun work in the cloud on an Opengeni workspace instead of locally. Use when the user asks to run something in the cloud, in the background, in parallel, "on Opengeni", or to hand off a long-running task; or asks about the status, result, or a follow-up for an Opengeni session. Creates a session with a self-contained brief, reports its link, checks status, fetches results, and sends follow-ups through the Opengeni MCP server.Other plugins' skills for the same job