{"id":50304516,"url":"https://github.com/beatwad/open-router-claw-code","last_synced_at":"2026-05-28T15:01:21.361Z","repository":{"id":348489957,"uuid":"1198286218","full_name":"beatwad/open-router-claw-code","owner":"beatwad","description":"Fork of claw-code that can work with any model using OpenRouter API.","archived":false,"fork":false,"pushed_at":"2026-04-01T10:22:45.000Z","size":5543,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-01T12:26:02.809Z","etag":null,"topics":["claude-code","claw-code","open-router","python","rust"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/beatwad.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":"instructkr"}},"created_at":"2026-04-01T09:28:44.000Z","updated_at":"2026-04-01T10:22:48.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/beatwad/open-router-claw-code","commit_stats":null,"previous_names":["beatwad/open-router-claw-code"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/beatwad/open-router-claw-code","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beatwad%2Fopen-router-claw-code","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beatwad%2Fopen-router-claw-code/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beatwad%2Fopen-router-claw-code/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beatwad%2Fopen-router-claw-code/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/beatwad","download_url":"https://codeload.github.com/beatwad/open-router-claw-code/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beatwad%2Fopen-router-claw-code/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33613431,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-28T02:00:06.440Z","response_time":99,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["claude-code","claw-code","open-router","python","rust"],"created_at":"2026-05-28T15:01:20.350Z","updated_at":"2026-05-28T15:01:21.356Z","avatar_url":"https://github.com/beatwad.png","language":"Rust","funding_links":["https://github.com/sponsors/instructkr"],"categories":[],"sub_categories":[],"readme":"# OpenRouter Claw Code\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"assets/clawd-hero.jpeg\" alt=\"Claw\" width=\"300\" /\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cstrong\u003eBetter Harness Tools, now working with any model from OpenRouter instead of Anthropic models only.\u003c/strong\u003e\n\u003c/p\u003e\n\n## Overview\nThis is a fork of the project [https://github.com/instructkr/claw-code/](https://github.com/instructkr/claw-code/).\n\nProject OpenRouter Claw Code aims to create a highly capable CLI agent harness. **We have successfully updated this project to work with any model from OpenRouter, rather than being restricted to Anthropic models.** \n\nCurrently, the repository contains two parallel tracks:\n1. **The Functional Agent (Rust):** A fully working, high-performance CLI application that executes tools, maintains context, and talks to OpenRouter.\n2. **The Porting Workspace (Python):** A clean-room Python rewrite currently in progress that captures the architectural patterns of the agent harness.\n\n---\n\n## 🚀 Getting Started: Using the Functional Agent (Rust)\n\nTo actually run the AI agent, interact with your codebase, and use OpenRouter models, you will use the Rust implementation. You will need [Rust installed](https://rustup.rs/) on your system.\n\n### 1. Set your OpenRouter API Key\nThe agent authenticates using your OpenRouter API key. Export it in your terminal:\n\n```bash\nexport OPENROUTER_API_KEY=\"sk-or-v1-...\"\n\n# Optional: If you are using a custom proxy endpoint\n# export OPENROUTER_BASE_URL=\"https://your-custom-proxy.com/api\"\n```\n\n### 2. Start the Interactive REPL\nNavigate to the `rust` directory and run the application:\n\n```bash\ncd rust/\ncargo run --release\n```\n*This will drop you into the interactive `claw` REPL where you can type prompts or use slash commands (like `/help` or `/status`).*\n\n### 3. Using Specific OpenRouter Models\nBy default, the agent tries to use an Opus alias, but you can pass any OpenRouter model string or use built-in aliases (like `gpt4o`, `deepseek`, `sonnet`, `haiku`):\n\n```bash\n# Using a built-in alias:\ncargo run --release -- --model google/gemini-3-flash-preview\n\n# Using an exact OpenRouter model ID:\ncargo run --release -- --model meta-llama/llama-3-70b-instruct\n```\n\n### 4. One-Shot Prompt Mode\nTo run a single command and exit without entering the REPL:\n```bash\ncargo run --release -- prompt \"Analyze the files in this directory and summarize them\"\n```\n\n---\n\n## 🐍 Development: Python Porting Workspace\n\nThe main source tree (`src/`) contains the active Python porting workspace. The current Python workspace is not yet a complete one-to-one replacement for the Rust system, but it is the primary implementation surface for the rewrite.\n\n### Repository Layout\n\n```text\n.\n├── rust/                               # Functional, high-performance Rust CLI agent\n├── src/                                # Python porting workspace (WIP)\n│   ├── __init__.py\n│   ├── commands.py\n│   ├── main.py\n│   ├── models.py\n│   ├── port_manifest.py\n│   ├── query_engine.py\n│   ├── task.py\n│   └── tools.py\n├── tests/                              # Python verification\n└── README.md\n```\n\n### Python Workspace Overview\n\nThe new Python `src/` tree currently provides:\n\n- **`port_manifest.py`** — summarizes the current Python workspace structure\n- **`models.py`** — dataclasses for subsystems, modules, and backlog state\n- **`commands.py`** — Python-side command port metadata\n- **`tools.py`** — Python-side tool port metadata\n- **`query_engine.py`** — renders a Python porting summary from the active workspace\n- **`main.py`** — a CLI entrypoint for manifest and summary output\n\n### Python Quickstart\n\nIf you want to explore the Python rewrite codebase, you can run the following commands from the **root of the repository** (requires Python 3):\n\n```bash\n# Render the Python porting summary:\npython3 -m src.main summary\n\n# Print the current Python workspace manifest:\npython3 -m src.main manifest\n\n# List the current Python modules:\npython3 -m src.main subsystems --limit 16\n\n# Inspect mirrored command/tool inventories:\npython3 -m src.main commands --limit 10\npython3 -m src.main tools --limit 10\n\n# Run verification tests:\npython3 -m unittest discover -s tests -v\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbeatwad%2Fopen-router-claw-code","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbeatwad%2Fopen-router-claw-code","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbeatwad%2Fopen-router-claw-code/lists"}