opcode_api
Skill by Sikao-Engine
opcode_api is a guide for the Kimix opencode-style HTTP server, a FastAPI app with SSE event streaming. It covers route definitions, builtin session endpoints, and app.post usage for developers working with that server.
Install opcode_api
Built from the published package, never by AI.
git clone --depth 1 https://github.com/Sikao-Engine/KimiX /tmp/KimiX && mkdir -p ~/.claude/skills && cp -r /tmp/KimiX/.agents/skills/opcode_api ~/.claude/skills/opcode-apiRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/Sikao-Engine/KimiX /tmp/KimiX && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/KimiX/.agents/skills/opcode_api ~/.gemini/antigravity-cli/skills/opcode-apiAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
opcode_api is an agent skill that documents the Kimix opencode-style HTTP server. The server is a FastAPI app in kimix.server.app that exposes an opencode-compatible REST API with SSE event streaming. It is created with create_app() and started with kimix serve --host 127.0.0.1 --port 4096.
The skill lists builtin endpoints for health checks, a global event stream, and session management, including creating, listing, reading, deleting, messaging, aborting, and granting permissions for sessions. It also explains handler conventions and app.post patterns. It is aimed at developers building on or integrating with the Kimix server. Full code examples are in references/guide.md.
Written from the project's SKILL.md and checked against it.
What it can do
- Health checkGET /global/health returns a health check for the server.
- Global event streamGET /event streams SSE events using the OpenCode protocol.
- Session creation and listingPOST /session creates a session and GET /session lists sessions.
- Session status and infoGET /session/status returns all session statuses; GET /session/{sessionID} returns one session.
- Session deletionDELETE /session/{sessionID} deletes a session.
- Message retrievalGET /session/{sessionID}/message gets the messages in a session.
- Async promptsPOST /session/{sessionID}/prompt_async sends a message fire-and-forget and returns 204.
- Session abortPOST /session/{sessionID}/abort aborts a session.
- Permission grantsPOST /session/{sessionID}/permissions/{permissionID} grants a permission.
- app.post patternsDescribes create, fire-and-forget, action, and nested path parameter route patterns.
What you need
- Kimix package with the kimix serve command
- FastAPI
Try asking
- Show me which builtin endpoints the Kimix server exposes for sessions.
- Create a Kimix session and send it a message without waiting for a reply.
- How do I stream SSE events from the Kimix /event endpoint?
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .agents/skills/opcode_api/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to opcode_api
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
opcode_api: common questions
What does the Kimix opencode API server do?
It is a FastAPI HTTP server in kimix.server.app that exposes an opencode-compatible REST API with SSE event streaming.
What format does the /event stream use?
It follows the OpenCode protocol, with no event: field, plain data: lines, and a heartbeat line of the form ': heartbeat'.
Where can I find full code examples for this API?
Full code examples and models are in references/guide.md, which the skill points to.
How do I install opcode_api?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is opcode_api free?
The code is public, but no licence file was found, so check the repository before commercial use.
Is opcode_api safe to use?
It scores 63 of 100. Grades: maintenance A, licence F, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to opcode_api?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
