Use Clirelay As A Self Hosted Ai Gateway For Coding Agents
ASecurity
Route Claude Code, Codex, Gemini CLI, and OpenAI-compatible coding tools through a self-hosted gateway with tenant controls, request logs, quotas, and provider failover.
Installs into .claude/skills of the current project.
Are you the author of Use Clirelay As A Self Hosted Ai Gateway For Coding Agents?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/agentskillexchange-use-clirelay-as-a-self-hosted-ai-gateway-for-codin)
---
name: "Use CliRelay as a self-hosted AI gateway for coding agents"
slug: "use-clirelay-as-a-self-hosted-ai-gateway-for-coding-agents"
description: "Route Claude Code, Codex, Gemini CLI, and OpenAI-compatible coding tools through a self-hosted gateway with tenant controls, request logs, quotas, and provider failover."
github_stars: 1028
verification: "security_reviewed"
source: "https://github.com/kittors/CliRelay"
author: "kittors"
publisher_type: "open_source"
category: "Developer Tools"
framework: "Multi-Framework"
tool_ecosystem:
github_repo: "kittors/CliRelay"
github_stars: 1028
---
# Use CliRelay as a self-hosted AI gateway for coding agents
Route Claude Code, Codex, Gemini CLI, and OpenAI-compatible coding tools through a self-hosted gateway with tenant controls, request logs, quotas, and provider failover.
## Prerequisites
Go 1.26+, PostgreSQL 15+, CliRelay service, coding CLI clients such as Claude Code, Codex CLI, Gemini CLI, or OpenAI-compatible clients
## Installation
Install or set up from the source-backed instructions:
Follow the CliRelay repository and documentation to deploy the Go service with PostgreSQL, configure upstream provider credentials or account imports, create tenant or endpoint keys, and point supported coding CLIs at the generated OpenAI-compatible gateway endpoint.
- Source: https://github.com/kittors/CliRelay
## Documentation
- https://help.router-for.me/
## Source
- [Agent Skill Exchange](https://agentskillexchange.com/skills/use-clirelay-as-a-self-hosted-ai-gateway-for-coding-agents/)