Add an AI agent API for Omarchy plugins #8463
ronald2wing
started this conversation in
Suggestions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Plugins can't cleanly use Omarchy's built-in agent, so each one rebuilds its own stack (keys, transport, security) — the exact stuff the security review warns against. It's already happening:
They can call the Omarchy agent, but it's not usable: launching it pops up the AI tool window over the plugin, and the prompt-only route needs the API key re-supplied (the Omarchy agent's auth doesn't carry through). So they rebuild their own stacks.
The request: a headless JSON API for the agent — a plugin sends a JSON request (prompt + context), gets a structured JSON answer back in the background. No keys, no setup, no popup; the agent owns the key end-to-end. A secure way to use AI that passes the Omarchy marketplace's security review — "confirm once, then allow" is the proposed gate.
Capabilities: Chat (streaming) · JSON output · OS actions (via the agent's own prompts) · inter-plugin calls · permission levels ("answer only" vs. "can act").
All reactions