Skip to content

Never stop coding. Free MIT AI gateway: one endpoint, 375 providers (150+ free), 1,400+ models Kimi, Claude, GPT, Gemini, GLM, DeepSeek, MiniMax. Works with Claude Code, Codex, Cursor, OpenCode, Cline & Copilot. Quota-aware auto-fallback, RTK+Caveman compression saves 15-95% tokens, MCP/A2A, Desktop/PWA. Built by 900+ contributors

release: v3.1.6 — Claude tool name fix + Clear All Models alias cleanup

diegosouzapw13829de0d99b
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 6305360721..821db65f12 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -4,6 +4,15 @@
---
+## [3.1.6] — 2026-03-27
+
+### 🐛 Bug Fixes
+
+- **Claude Native Tool Name Restoration** — Tool names like `TodoWrite` are no longer prefixed with `proxy_` in Claude passthrough responses (both streaming and non-streaming). Includes unit test coverage (PR #663 by @coobabm)
+- **Clear All Models Alias Cleanup** — "Clear All Models" button now also removes associated model aliases, preventing ghost models in the UI (PR #664 by @rdself)
+
+---
+
## [3.1.5] — 2026-03-27
### 🐛 Bug Fixes
diff --git a/docs/openapi.yaml b/docs/openapi.yaml
index 6befd59f38..4dc0a26a1d 100644
--- a/docs/openapi.yaml
+++ b/docs/openapi.yaml
@@ -1,7 +1,7 @@
openapi: 3.1.0
info:
title: OmniRoute API
- version: 3.1.5
+ version: 3.1.6
description: |
OmniRoute is a local-first AI API proxy router. It provides an OpenAI-compatible
endpoint that routes requests to multiple AI providers with load balancing,
diff --git a/package-lock.json b/package-lock.json
index 1d5e3dca13..156e69b2b4 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "omniroute",
- "version": "3.1.5",
+ "version": "3.1.6",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "omniroute",
- "version": "3.1.5",
+ "version": "3.1.6",
"hasInstallScript": true,
"license": "MIT",
"workspaces": [
diff --git a/package.json b/package.json
index aceb5e45c1..12451f3f99 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "omniroute",
- "version": "3.1.5",
+ "version": "3.1.6",
"description": "Smart AI Router with auto fallback — route to FREE & cheap models, zero downtime. Works with Cursor, Cline, Claude Desktop, Codex, and any OpenAI-compatible tool.",
"type": "module",
"bin": {
diff --git a/tests/unit/claude-native-passthrough-tools.test.mjs b/tests/unit/claude-native-passthrough-tools.test.mjs
index 0bedf327d7..07fca0ba73 100644
--- a/tests/unit/claude-native-passthrough-tools.test.mjs
+++ b/tests/unit/claude-native-passthrough-tools.test.mjs
@@ -39,3 +39,60 @@ test("Claude native passthrough normalization keeps original tool names", () =>
structuredClone(body),
false,
null,
+ null,
+ null
+ );
+
+ // The translated body should have function wrappers with the original name
+ assert.ok(Array.isArray(openaiBody.tools), "tools should be an array");
+ const tool = openaiBody.tools[0];
+ assert.ok(tool.function, "tool should have a function wrapper");
+ assert.ok(
+ tool.function.name === "TodoWrite" || tool.function.name === "proxy_TodoWrite",
+ `tool name should be preserved or prefixed, got: ${tool.function.name}`
+ );
+});
+
+test("Claude-to-Claude passthrough should not alter tool names", () => {
+ const body = {
+ model: "claude-sonnet-4-6",
+ max_tokens: 64,
+ messages: [
+ {
+ role: "user",
+ content: [{ type: "text", text: "Write a todo item" }],
+ },
+ ],
+ tools: [
+ {
+ name: "TodoWrite",
+ description: "Create or update a todo list",
+ input_schema: {
+ type: "object",
+ properties: {
+ todos: {
+ type: "array",
+ items: { type: "string" },
+ },
+ },
+ required: ["todos"],
+ },
+ },
+ ],
+ };
+
+ const result = translateRequest(
+ FORMATS.CLAUDE,
+ FORMATS.CLAUDE,
+ body.model,
+ structuredClone(body),
+ false,
+ null,
+ null,
+ null
+ );
+
+ // Claude-to-Claude should preserve tool names
+ assert.ok(Array.isArray(result.tools), "tools should be an array");
+ assert.equal(result.tools[0].name, "TodoWrite", "tool name should stay unchanged for Claude-to-Claude");
+});