Agents
Quick setup
Connect a coding agent to Lyber with one copy and paste.
- Put your key in your environment: add
export LYBER_API_KEY="…"to your shell profile and open a new terminal. Get a key. - Copy the prompt below and paste it into the coding agent you already use: Claude Code, Codex, Cursor, or the agent you're connecting.
- Tell it which agent to connect. It edits that agent's settings, keeps your key out of every file, and checks the connection without spending credit.
Connect my coding agent to Lyber, an OpenAI-compatible API.
Ask me which agent to connect if I haven't said. You can set up: OpenCode, fx, Crush, Continue, aider, Qwen Code.
- For one of those, read its setup page and follow the prompt on it exactly: https://www.lyber.ai/docs/md/agents/coding-agents/<agent>.md, where <agent> is opencode, fx, crush, continue, aider, qwen-code. If you can't open web pages, ask me to copy the prompt from https://www.lyber.ai/docs/agents/coding-agents/<agent>/ instead.
- For Codex, give me this command to run in my terminal myself: curl -fsSL https://www.lyber.ai/lyber-codex-connect.py -o ~/Downloads/lyber-codex-connect.py && python3 ~/Downloads/lyber-codex-connect.py --client desktop --router https://lyber-paid-acceptance-gateway-production.up.railway.app --model minimax-m3.1-flash-abliterated
- For Hermes, send me to https://www.lyber.ai/connect/
Rules:
- The API key is in the LYBER_API_KEY environment variable. Never print it, never write it into a file, and never ask me to paste it into this chat.
- Back up any config file before changing it, and keep the settings that are already there.
- Check the connection without spending credit (this should print 200): curl -s -o /dev/null -w "%{http_code}\n" https://lyber-paid-acceptance-gateway-production.up.railway.app/v1/models -H "Authorization: Bearer $LYBER_API_KEY"
- Don't send a chat request through Lyber unless I ask.
Base URL: https://lyber-paid-acceptance-gateway-production.up.railway.app/v1
Models: minimax-m3.1-flash-abliterated (default) and deepseek-v4.1-flash-1017-abliteratedOr pick your agent
Each page has a prompt for that agent alone, the settings to add by hand, and its notes.
CodexBoth Lyber models in the Codex app or a separate CLI profile.Guided setup
HermesA Hermes agent with its own Lyber profile.Guided setup
OpenCodeThe open-source terminal agent, through its OpenAI-compatible provider.Copy a prompt
fxVercel's minimal open-source coding agent, through a custom model connection.Copy a prompt
CrushCharm's terminal agent, as an OpenAI-compatible provider.Copy a promptContinueThe VS Code and JetBrains assistant, and its
cnCLI.Copy a prompt
aiderPair programming in your terminal, through its OpenAI-compatible mode.Copy a promptQwen CodeThe terminal agent from the Qwen team, in OpenAI-compatible mode.Copy a prompt
Claude CodeKeeps its Claude model; adds a Lyber client to your project.Adds Lyber to your code
CursorKeeps its own model; adds a Lyber client to your project.Adds Lyber to your code