[FEATURE] Support riscv64 (linux/riscv64) architecture
Preflight Checklist
- [x] I have searched existing requests and this feature hasn't been requested yet
- [x] This is a single feature request (not multiple features)
Problem Statement
Claude Code CLI does not ship a binary for linux/riscv64. This blocks the entire AI agent ecosystem on RISC-V hardware.
I maintain automated CI/CD pipelines that build and publish riscv64 Docker images for NanoClaw (an AI agent runtime that uses Claude Code as its agent engine). The NanoClaw orchestrator — TypeScript runtime, container management, session handling, message queues — runs perfectly on riscv64. All 133 npm packages install without failure. The Docker container builds and starts correctly.
But when the agent tries to execute, it fails because Claude Code CLI isn't available:
Error: spawn /app/node_modules/@anthropic-ai/claude-agent-sdk/vendor/ripgrep/riscv64-linux/rg ENOENT
(The vendored ripgrep issue was fixed with a Debian system package + symlink. The Claude Code binary itself is the remaining blocker.)
Proposed Solution
Ship a linux/riscv64 binary for Claude Code CLI, and include a riscv64 ripgrep binary in @anthropic-ai/claude-agent-sdk.
Alternative Solutions
- Investigated LangGraph, AutoGen, CrewAI as alternative agent runtimes — they work on riscv64 (pure Python) but are not NanoClaw-compatible replacements.
- llama.cpp with its OpenAI-compatible API runs on riscv64 and can serve as a local LLM backend, but NanoClaw specifically requires Claude Code CLI.
- There is no workaround for the missing Claude Code binary — it is the hard blocker.
Priority
Medium - Would be very helpful
Feature Category
CLI commands and flags
Use Case Example
- Two SpacemiT K1 / Banana Pi F3 boards (riscv64, 8-core, 16GB RAM each) run as GitHub Actions self-hosted runners
- Automated weekly builds produce NanoClaw riscv64 Docker images, pushed to Docker Hub and ghcr.io
- The orchestrator starts, creates agent sessions, returns structured JSON — everything works
- Agent execution fails because Claude Code CLI has no riscv64 binary
- With a riscv64 binary, the entire stack lights up with zero changes on my side
Additional Context
- Hardware tested: SpacemiT K1 (Banana Pi F3, OrangePi RV2) — 8-core RISC-V, 16GB RAM, Armbian Trixie
- Docker Engine 29.2.1 on riscv64 works fine
- Node.js 20.19.2 on riscv64 works fine
- Full blog series documenting the work: Part 1 — Feasibility and Part 2 — Automated Builds
- Fork with CI/CD pipeline: gounthar/nanoclaw
- Martin Wozenilek independently confirmed OpenClaw running on OrangePi RV2 (same SoC)
- The RISC-V ecosystem for AI workloads is growing: llama.cpp, Ollama, Python wheel factories for AI deps all work on riscv64 today
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗