Better HN
topnewbestaskshowjobs
Log inSign up

vishalveera

1 karma · joined Sep 21, 2024 (2y ago) · 33 submissions

Submissions

comment 10mo ago · link · parent

Hi HN,

I built an open-source proxy called Lynkr that lets AI coding tools like Cursor, Cline, Continue.dev, Claude Code, and OpenCode run on any model backend instead of being locked to a single provider.

The problem I ran into is that most modern AI coding tools are tightly coupled to a small set of hosted models. That makes it hard to control cost, run locally, use enterprise endpoints, or experiment with different models without changing tools or workflows.

Lynkr sits between the client and the model and speaks both OpenAI-compatible and Claude-compatible APIs. From the client’s point of view, nothing changes — but you can route requests to local models (Ollama, llama.cpp), OpenRouter, or enterprise endpoints like Azure or Databricks.

Architecture-wise, it’s a thin HTTP proxy that translates requests, supports streaming, tool calls, and adds optional features like prompt caching, simple routing rules, and workspace indexing for coding workflows.

One feature I’ve found especially useful is hierarchical routing: requests can be routed through a priority chain of models (for example, try a local model first, fall back to a stronger cloud model on failure or for large contexts, and finally to a premium model for complex tasks). This makes it possible to mix cost, latency, and quality policies without changing the client.

A few concrete use cases that motivated this:

Running Cursor or Continue fully on local models for privacy

Routing cheap tasks to local models and harder tasks to stronger cloud models

Using Claude Code CLI without sending code to Anthropic’s hosted backend

This is early-stage and very much infra-focused. Setup is a single binary / npm install, and you point your tool’s base URL at Lynkr.

Repo: https://github.com/Fast-Editor/Lynkr

2.

Run AI tools like Cursor,Claude Code, Codex on your own models(github.com ↗)

1 points · by vishalveera · 10mo ago · 1 comment

comment 11mo ago · link · parent

Quick share for anyone interested in LLM infrastructure: Hey folks! Sharing an open-source project that might be useful: Lynkr connects AI coding tools (like Claude Code) to multiple LLM providers with intelligent routing. Key features: - Route between multiple providers: Databricks, Azure Ai Foundry, OpenRouter, Ollama,llama.cpp, OpenAi - Cost optimization through hierarchical routing, heavy prompt caching - Production-ready: circuit breakers, load shedding, monitoring - It supports all the features offered by claude code like sub agents, skills , mcp , plugins etc unlike other proxies which only supports basic tool callings and chat completions. Great for: :white_check_mark: Reducing API costs as it supports hierarchical routing where you can route requstes to smaller local models and later switch to cloud LLMs automatically. :white_check_mark: Using enterprise infrastructure (Azure) :white_check_mark: Local LLM experimentation ```bash npm install -g lynkr ``` GitHub: https://github.com/Fast-Editor/Lynkr (Apache 2.0) Would love to get your feedback on this one. Please drop a star on the repo if you found it helpful

4.

Lynkr – Multi-Provider LLM Proxy(github.com ↗)

1 points · by vishalveera · 11mo ago · 1 comment

comment 11mo ago · link · parent

Claude Code is surprisingly strict about response shape, tool timing, and streaming semantics. Even small differences in Azure/Databricks responses cause silent failures.

Lynkr sits in the middle and enforces “Anthropic-ness” as a contract:

request rewriting

tool call lifecycle enforcement

streaming normalization

capability emulation when the backend can’t support something natively

Happy to explain any of the protocol quirks if people are curious.

6.

Show HN: Run Claude Code CLI with Azure&open source LLMs saving costs(github.com ↗)

1 points · by vishalveera · 11mo ago · discuss

12