Cligent — AI skill for Claude Code
Unified TypeScript SDK for AI agents - Claude Code, Codex, Gemini CLI, OpenCode, and more.
How to install Cligent
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open sublang-ai/cligent and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Cligent does
Unified TypeScript SDK for AI agents - Claude Code, Codex, Gemini CLI, OpenCode, and more.
Alternatives in AI
- Opencodex — Universal provider proxy for OpenAI Codex & Claude Code — use any LLM (Claude, Gemini, Grok, DeepSeek, Ollama… 12.3k ★
- Anthropic SDK TypeScript — Access to Anthropic's safety-first language model APIs in TypeScript 2.1k ★
- Botmux — Bridge Feishu/Lark to AI coding CLIs — Claude Code, Codex, Gemini, OpenCode… every DM, group or topic spawns i 1.2k ★
README
cligent
[](https://www.npmjs.com/package/@sublang/cligent) [](https://nodejs.org/) [](https://github.com/sublang-ai/cligent/actions/workflows/ci.yml)
Unified TypeScript SDK for AI coding agent CLIs (Claude Code, Codex CLI, Gemini CLI, Kimi Code, OpenCode, and more).
Register an adapter, send a prompt, and consume a single async event stream — regardless of which agent runs underneath.
Install
npm install @sublang/cligent
The agent SDKs are optional peer dependencies — add the one(s) for the adapters you use:
# `>=` keeps the declaration open so a cligent upgrade can carry the runtime
# forward. A bare `npm install ` writes a caret instead, and for a
# `0.MINOR.PATCH` package a caret pins the minor: `^0.139.0` never reaches
# `0.146.0`, however often you run `npm update`.
npm install "@anthropic-ai/claude-agent-sdk@>=0.3.219" # Claude Code
npm install "@openai/codex-sdk@>=0.144.0" # Codex
npm install "@opencode-ai/sdk@>=1.18.12" # OpenCode
Gemini and default managed-mode OpenCode also need their CLI on `PATH`. External-mode OpenCode connects to a caller-owned server and needs only the SDK. Kimi has its own pinned CLI setup below.
npm install -g @google/gemini-cli # Gemini CLI
npm install -g opencode-ai # OpenCode managed server
cligent owns which versions of those runtimes work. It refuses one it does not support, naming the version it found, the version it needs, and the command that repairs it — before an agent call rather than in the middle of one. `@sublang/cligent/runtime-targets` publishes the supported and tested version of every runtime, so a
Related Skills
Runjam
One desktop for all your AI coding agents — Claude Code, Codex CLI & Gemini CLI. Auto-detect, one-click instal
Xspace AI
TypeScript SDK and CLI for building AI agents that autonomously join, listen, and speak in X/Twitter Spaces. S
Agent SDK Core
Shared TypeScript foundation for AI coding agent SDKs (Copilot, Claude Code, Codex)
LLM Adapter Kit
A universal TypeScript library for interacting with multiple LLM providers through a unified interface. Suppor
Ctk
Conversation Toolkit - Unified CLI for managing AI conversations from ChatGPT, Claude, Gemini, and more. Impor
Unicli Hub
A unified context management hub for AI CLI tools. Synchronize your agent.md, skills, and memory across Cursor
Related Agents
Agent Of Empires
Claude Code, OpenCode, Mistral Vibe, Codex CLI, Gemini CLI Coding Agent Terminal Session manager via tmux and
Developer Overview
code-container (container) creates isolated Docker environments for AI coding harnesses (Claude Code, OpenCode
Paf Reviewer
Runs one phone-a-friend relay or review command in the background and reports back a receipt plus the findings