termly-cli

作者 termly-dev

Mobile companion for Claude Code, Gemini CLI & OpenCode. Encrypted, remote

282
Stars
18
Forks
JavaScript
语言
2026/8/23
添加时间

⚠️ 第三方软件声明

本 Skill 为第三方开源软件,独立托管于 GitHub。SkillTip 仅为信息目录,不控制或维护底层仓库。所显示的安全检查为自动化且范围有限,安装前请自行审查源码。

阅读服务条款

安装

添加到你的 Claude Code skills 目录:

# Add to your Claude Code skills
git clone https://github.com/termly-dev/termly-cli

快速入门

使用 termly-cli 等 Skills 的指南。

安全报告

已验证

上次扫描:—

{
  "status": "PASSED",
  "issues": []
}

README.md

Termly CLI

Access your AI coding assistants from any device. Works with Claude Code, Aider, GitHub Copilot, and any terminal-based AI tool.

What's New in v1.9.5

  • 🐼 Qwen Code - Added support for Alibaba's agentic coding CLI optimized for Qwen3-Coder models
  • 🔒 Security - Patched 8 Dependabot alerts (axios, lodash, ajv, follow-redirects)

Previous versions:

  • v1.9.3 - Handle pairing_expired error from server on reconnect
  • v1.9 - Pi Coding Agent, Kilo Code CLI, enhanced TUI mode
  • v1.8 - Added Pi Coding Agent and Kilo Code CLI support
  • v1.7 - TUI mode support, OpenCode integration, smarter reconnection
  • v1.5 - Push notifications support, improved session stability
  • v1.3 - Prebuilt binaries, improved Windows support, fast installation
  • v1.2 - Windows output deduplication and PowerShell optimization
  • v1.0 - Stable release with session management and E2EE

Features

  • 🚀 Universal AI Tool Support - Works with any terminal-based AI coding assistant
  • 📱 Mobile Access - Control your AI tools from phone or tablet
  • 🔒 End-to-End Encryption - AES-256-GCM + DH-2048 key exchange with fingerprint verification
  • 🔄 Session Resume - Automatic reconnection with state synchronization
  • 💻 Multiple Sessions - Run multiple AI tools simultaneously
  • 🎯 Auto-Detection - Automatically finds installed AI tools
  • Zero-Knowledge Server - Server never sees your unencrypted data
  • 🌍 Multiple Environments - Production, Development, and Local modes
  • 🔄 Auto-Update Check - Ensures you're always running a supported version

Installation

Quick Install

Termly CLI includes prebuilt binaries for all platforms - no compilation required!

All Platforms:

npm install -g @termly-dev/cli

After installation, the termly command is available globally.

That's it! Works out-of-the-box on:

  • ✅ macOS (Intel & Apple Silicon)
  • ✅ Linux (x64 & ARM64)
  • ✅ Windows 10+ (x64 & ARM64)

Development (Beta Testing)

For beta testers and development:

npm install -g @termly-dev/cli-dev

This installs the termly-dev command which connects to the development environment.

System Requirements

Node.js 18+ - That's all you need!

Termly CLI uses @lydell/node-pty with prebuilt binaries for all platforms:

  • No Visual Studio required on Windows
  • No Xcode CLI tools required on macOS
  • No build-essential required on Linux
  • Fast installation (no compilation)

Installation typically completes in 10-30 seconds.

Environments

Termly CLI supports three environments:

EnvironmentPackageCommandServer URLUse Case
Production@termly-dev/clitermlywss://api.termly.devEnd users
Development@termly-dev/cli-devtermly-devwss://dev-api.termly.devBeta testers
LocalRun from sourceTERMLY_ENV=local termlyws://localhost:3000Developers only

Note: Server URLs are hardcoded per environment and cannot be changed by users.

Quick Start

Production

cd /path/to/your/project
termly start

Development

cd /path/to/your/project
termly-dev start

Local Development

# Clone the repo
git clone https://github.com/termly-dev/termly-cli
cd termly-cli
npm install

# Run with local environment
TERMLY_ENV=local node bin/cli.js start

Multiple Sessions

Run multiple sessions simultaneously:

# Terminal 1
cd ~/frontend
termly start

# Terminal 2 (new window)
cd ~/backend
termly start

Each session:

  • Independent AI tool instance
  • Own WebSocket connection
  • Can connect one mobile device

Manage sessions:

termly status        # Show all sessions
termly stop abc-123  # Stop specific session
termly list          # Quick list

Supported AI Tools

Termly CLI supports 23+ interactive terminal-based AI coding assistants:

Official Tools from Major Companies

  • Claude Code (Anthropic) - AI coding assistant
  • GitHub Copilot CLI (Microsoft) - Command line AI
  • Cursor CLI (Cursor) - AI coding assistant CLI
  • Cody CLI (Sourcegraph) - AI assistant (Beta)
  • Amazon Q Developer (AWS) - Free tier available
  • Google Gemini CLI (Google) - 1M token context window
  • Grok CLI (xAI) - X.AI's coding assistant
  • OpenAI Codex CLI (OpenAI) - Code generation model
  • Qwen Code (Alibaba) - Agentic coding CLI optimized for Qwen3-Coder models

Popular Open-Source Tools

  • Aider - AI pair programming (35k+ stars)
  • OpenCode - TUI-based AI coding agent with LSP integration (full TUI support!)
  • Kilo Code CLI - Agentic engineering CLI with 500+ models and parallel mode (full TUI support!)
  • Pi Coding Agent - Minimal AI agent with extensions, skills, and 15+ LLM providers
  • Continue CLI - Modular architecture
  • OpenHands - Open-source Devin alternative
  • Mentat - Git integration
  • ChatGPT CLI - ChatGPT in terminal
  • ShellGPT - Shell command assistant
  • Ollama - Run LLMs locally (CodeLlama, etc)
  • Blackbox AI - Debugging & file editing

Experimental/Future Support

  • Devin CLI - When released
  • Any other terminal-based AI tool

And more... - Works with any terminal-based AI tool that supports interactive TTY mode

Commands

All commands work the same way in both termly (production) and termly-dev (development).

Setup

termly setup

Interactive configuration setup (optional - sets default AI tool preference).

Start

termly start [directory] [options]

Start a new session with AI tool.

Options:

  • --ai <tool> - Specify AI tool to use
  • --ai-args <args> - Additional arguments for AI tool
  • --no-auto-detect - Disable auto-detection
  • --debug - Enable debug logging

Examples:

# Auto-detect and start
termly start

# Use Aider explicitly
termly start --ai aider

# Use Claude Code with custom directory
termly start /path/to/project --ai "claude code"

# Pass arguments to AI tool
termly start --ai aider --ai-args "--model gpt-4"

# Continue previous Claude Code session (restore context after restart)
termly start --ai claude-code --ai-args "--continue"

Status

termly status [--all]

Show all active sessions with detailed information.

Stop

termly stop [session-id] [--all]

Stop one or all sessions.

List

termly list

Quick list of active sessions with encryption fingerprints for verification.

Tools

termly tools list           # List available AI tools
termly tools detect         # Detect installed tools
termly tools info <tool>    # Show tool information

Config

termly config               # Show current configuration
termly config get <key>     # Get config value
termly config set <key> <value>  # Set config value

Examples:

termly config set defaultAI aider
termly config get defaultAI

Note: Server URL is determined by environment and cannot be changed via config.

Cleanup

termly cleanup

Remove stale sessions (processes that are no longer running).

Requirements

  • Node.js 18+
  • At least one AI coding assistant installed (see Supported AI Tools section)
  • Mobile app (iOS/Android) - coming soon

Troubleshooting

Installation Issues

Installation usually works flawlessly thanks to prebuilt binaries.

If you encounter issues:

"Cannot find module 'node-pty'"

Reinstall the package:

npm uninstall -g @termly-dev/cli
npm cache clean --force
npm install -g @termly-dev/cli

Permission errors on macOS/Linux

Use sudo or fix npm permissions:

# Option 1: Use sudo
sudo npm install -g @termly-dev/cli

# Option 2: Fix npm permissions (recommended)
mkdir ~/.npm-global
npm config set prefix '~/.npm-global'
echo 'export PATH=~/.npm-global/bin:$PATH' >> ~/.bashrc
source ~/.bashrc
npm install -g @termly-dev/cli

Windows: "EPERM: operation not permitted"

This is usually a warning, not a fatal error. Check if installation succeeded:

termly --version

If the command works, installation was successful.

Usage Issues

No AI tools detected?

termly tools list  # Check what's installed

Install an AI tool:

  • Claude Code: https://docs.claude.com
  • Aider: pip install aider-chat
  • GitHub Copilot: gh extension install github/gh-copilot

Session already running?

termly status       # Find session ID
termly stop abc-123 # Stop it

Check your environment:

termly config  # Shows current environment and server URL

Logs: ~/.termly/logs/cli.log

For issues: https://github.com/termly-dev/termly-cli/issues

Security

  • End-to-end encryption (AES-256-GCM)
  • Diffie-Hellman key exchange (2048-bit)
  • Fingerprint verification - Compare encryption keys between CLI and mobile app
  • Zero-knowledge server - Server cannot decrypt your data
  • One mobile device per session
  • Environment isolation - Production and development separated
  • Version enforcement - Automatic check for minimum supported version
  • Open source - Audit the code yourself

Architecture

Termly CLI uses a PTY (pseudo-terminal) to spawn AI tools locally and streams I/O through WebSocket with end-to-end encryption.

Mobile App <--[encrypted]--> WebSocket Server <--[encrypted]--> CLI <--[local]--> PTY <--> AI Tool

Key features:

  • Circular buffer - Stores last 100KB for session resume
  • Platform-specific optimizations - Windows output deduplication and escape sequence normalization
  • Batch catchup - Sends missed messages in 100-message batches with 10ms delay

For detailed architecture diagrams and data flow, see docs/ARCHITECTURE.md.

Development

# Install dependencies
npm install

# Run production mode
node bin/cli.js start

# Run development mode
node bin/cli-dev.js start

# Run local mode (custom server)
TERMLY_ENV=local node bin/cli.js start

# Debug mode
DEBUG=1 node bin/cli.js start --debug

# View logs
tail -f ~/.termly/logs/cli.log  # macOS/Linux
Get-Content $env:USERPROFILE\.termly\logs\cli.log -Wait -Tail 50  # Windows

Publishing

Production Release

# Update version in package.json and package.dev.json
npm version patch  # or minor, or major

# Publish production package
npm publish

Development Release

# Use the publish script
./scripts/publish-dev.sh

# Or manually:
cp package.dev.json package.json
npm publish
git checkout package.json

Contributing

Contributions are welcome! Please:

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

Before contributing:

  • Read CLAUDE.md for project structure and implementation details
  • Check docs/ARCHITECTURE.md for architecture overview
  • Run the CLI locally to test your changes

Documentation

License

MIT - See LICENSE for details

Support

Links


Made with ❤️ by the Termly Team

常见问题

What is termly-cli?

termly-cli is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by termly-dev. Mobile companion for Claude Code, Gemini CLI & OpenCode. Encrypted, remote. It has 282 GitHub stars.

Is termly-cli safe to use?

termly-cli returned warnings in SkillsLLM's automated security scan. It has no critical vulnerabilities, but review the flagged issues in the Security Report section before adding it to your workflow.

How do I install termly-cli?

Clone the repository with "git clone https://github.com/termly-dev/termly-cli" and add it to your Claude Code skills directory (see the Installation section above).

What programming language is termly-cli written in?

termly-cli is primarily written in JavaScript. It is open-source under termly-dev on GitHub, so you can review or fork the full source.

Are there alternatives to termly-cli?

Yes. SkillsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh termly-cli against similar tools.

评论 (0)

暂无评论,成为第一个分享想法的人!

ECC

by affaan-m

10

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

242,21936,702JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情
15

An agentic skills framework & software development methodology that works.

234,96620,863Shell
AI 智能体ai-agentsbrainstorming
查看详情

hermes-agent

by NousResearch

10

The agent that grows with you

234,43747,175Python
AI 智能体ai-agentsagent-orchestration
查看详情

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

185,94028,768JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情

cc-switch

by farion1231

3

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

128,8688,826Rust
AI 智能体claude-codeai-tools
查看详情

claude-code

by anthropics

Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows - all through natural language commands.

120,03119,897Shell
AI 智能体
查看详情

开发者还喜欢

基于喜欢此 Skill 的开发者投票和收藏

ECC

by affaan-m

10

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

242,21936,702JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情
15

An agentic skills framework & software development methodology that works.

234,96620,863Shell
AI 智能体ai-agentsbrainstorming
查看详情

hermes-agent

by NousResearch

10

The agent that grows with you

234,43747,175Python
AI 智能体ai-agentsagent-orchestration
查看详情

n8n

by n8n-io

12

Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.

201,88160,308TypeScript
MCP 服务器apisai-tools
查看详情

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

185,94028,768JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情

cc-switch

by farion1231

3

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

128,8688,826Rust
AI 智能体claude-codeai-tools
查看详情