[Saiyah] Claw Code Integration — Allegro BPS Substrate Runtime #234
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Part of Epic #232 — Saiyah Architecture
Objective
Integrate Claw Code substrate runtime into Allegro BPS — 5ms cold start, telemetry-free operation.
Current State (from #227)
/root/wizards/substrate/claw-code/rust/target/release/rusty-claude-cliTasks
Deliverables
Related
*Saiyah: We own the runtime. No harness. No telemetry.
Status Update: 2026-04-01
Completed:
ProviderConfigstruct with presets for Anthropic, Kimi, Kimi-Coding, OpenRouter, OpenAICLAW_PROVIDER,CLAW_BASE_URLBlocker Identified:
Claw Code uses Anthropic's native API format (
/v1/messagesendpoint with Anthropic-specific request/response format). OpenRouter and Kimi use OpenAI-compatible format (/v1/chat/completions).Two paths forward:
Path A: API Format Adapter (Recommended)
Create a lightweight proxy/adapter that:
Path B: Modify Claw Code Runtime
Extend Claw Code to support multiple API formats:
ApiFormatenum:AnthropicNativevsOpenAiCompatibleImmediate workaround for Allegro BPS:
Use Claw Code with Anthropic API directly (already working), bypass OpenRouter/Kimi for now. 16GB cloud capacity can run local inference if needed.
Next step: Implement Path A adapter for rapid provider switching without modifying Claw Code core.
Local Opus Support
Claw Code must support routing to local Opus endpoint (llama-server, vLLM, ollama) in addition to cloud providers.
This enables:
Task added to checklist.