You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
### The AI coding proxy that compresses tokens before they hit the model.
3
+
### An LLM Gateway which optimises your token usage.
4
4
5
5
**87.6% fewer tokens on JSON tool results. 53% fewer tokens on tool-heavy requests. 171ms semantic cache hits. Zero code changes.**
6
6
@@ -31,20 +31,11 @@
31
31
```bash
32
32
npm install -g lynkr
33
33
34
+
34
35
# Claude Code Pro/Max
35
36
lynkr wrap claude
36
37
37
-
# GitHub Copilot
38
-
lynkr wrap copilot
39
-
40
-
# Aider
41
-
lynkr wrap aider
42
38
43
-
# Cursor
44
-
lynkr wrap cursor
45
-
46
-
# OpenAI Codex
47
-
lynkr wrap codex
48
39
```
49
40
50
41
**Wrapping gives you:**
@@ -68,102 +59,31 @@ npm install -g lynkr
68
59
69
60
### 2. Configure Lynkr
70
61
71
-
Run the interactive wizard — it walks you through choosing your usage mode (Claude Pro/Max subscription or direct API), picks a provider + model for each tier, collects credentials once, and writes a working `.env`:
62
+
The fastest path is the interactive wizard:
72
63
73
64
```bash
74
65
lynkr init
75
66
```
76
67
77
-
The wizard covers all 12 supported providers. To re-run on top of an existing `.env`, use `lynkr init --force`. For the manual route, copy `.env.example` to `.env` and edit by hand:
68
+
It asks four questions — usage mode (Claude Pro/Max via wrap, or direct API keys), tier picks for SIMPLE/MEDIUM/COMPLEX/REASONING across the 12 supported providers, credentials for what you chose, and a few routing-intelligence knobs — then writes a fully-populated `.env` with sensible production defaults for everything else (caching, compression, policy budgets, MCP sandbox, agents, rate limiting).
78
69
79
-
**Option A: Free & Local (Ollama) - Recommended for Testing**
70
+
Useful flags:
80
71
81
72
```bash
82
-
# Install Ollama first: https://ollama.com
83
-
ollama pull qwen2.5-coder:latest
73
+
lynkr init --force # overwrite an existing .env
84
74
```
85
75
86
-
Create/edit `.env` in your project directory:
87
-
```bash
88
-
# Provider
89
-
MODEL_PROVIDER=ollama
90
-
FALLBACK_ENABLED=false
91
-
92
-
# Ollama Configuration
93
-
OLLAMA_ENDPOINT=http://localhost:11434
94
-
OLLAMA_MODEL=qwen2.5-coder:latest
95
-
96
-
# Server
97
-
PORT=8081
98
-
99
-
# Optional: Limits (remove for unlimited)
100
-
POLICY_MAX_STEPS=50
101
-
POLICY_MAX_TOOL_CALLS=100
102
-
103
-
# Disable overly strict command filtering
104
-
POLICY_SAFE_COMMANDS_ENABLED=false
105
-
```
76
+
See [`docs/init.md`](docs/init.md) for the full wizard reference.
106
77
107
-
**Option B: Cloud (OpenRouter) - Recommended for Production**
78
+
If you'd rather configure by hand, the manual options below still work — copy `.env.example` to `.env` and edit it directly:
108
79
109
-
```bash
110
-
# Get API key from https://openrouter.ai
111
-
```
112
-
113
-
Create/edit `.env`:
114
-
```bash
115
-
# Provider
116
-
MODEL_PROVIDER=openrouter
117
-
OPENROUTER_API_KEY=sk-or-v1-your-key-here
118
-
FALLBACK_ENABLED=false
119
-
120
-
# Server
121
-
PORT=8081
122
-
123
-
# Optional: Limits (remove for unlimited)
124
-
POLICY_MAX_STEPS=50
125
-
POLICY_MAX_TOOL_CALLS=100
126
-
127
-
# Optional: Enable caching
128
-
PROMPT_CACHE_ENABLED=true
129
-
SEMANTIC_CACHE_ENABLED=true
130
-
```
131
-
132
-
**Option C: Enterprise (AWS Bedrock)**
80
+
**Option A: Free & Local (Ollama) - Recommended for Testing**
0 commit comments