Esta página se muestra en inglés. Una traducción al español está en curso.
CLI ToolsMay 14, 2026·2 min de lectura

chatgpt-cli — Multi-Provider ChatGPT CLI + MCP

A fast ChatGPT CLI with threads/history and built-in MCP client support (tools + session handling); verified 922★, pushed 2026-05-09.

Listo para agents

Este activo puede ser leído e instalado directamente por agents

TokRepo expone un comando CLI universal, contrato de instalación, metadata JSON, plan según adaptador y contenido raw para que los agents evalúen compatibilidad, riesgo y próximos pasos.

Native · 94/100Política: permitir
Superficie agent
Cualquier agent MCP/CLI
Tipo
Cli
Instalación
Brew|Curl
Confianza
Confianza: Established
Entrada
chatgpt --help
Comando CLI universal
npx tokrepo install a932d048-cb1d-57f5-b14e-41deb8436741
Introducción

A fast ChatGPT CLI with threads/history and built-in MCP client support (tools + session handling); verified 922★, pushed 2026-05-09.

Best for: Developers who want a terminal-first assistant that can call MCP tools and keep history

Works with: macOS/Linux/Windows binaries; uses OPENAI_API_KEY and can call MCP servers over HTTP(S) (per README)

Setup time: 6-12 minutes

Key facts (verified)

  • GitHub: 922 stars · 61 forks · pushed 2026-05-09.
  • License: MIT · owner avatar + repo URL verified via GitHub API.
  • README-backed entrypoint: chatgpt --help.

Main

  • Start with history: creating ~/.chatgpt-cli enables per-thread message history and a sliding context window (README).

  • Use MCP for tool-augmented questions: inject tool results into the thread first, then ask follow-ups while the context stays local to the CLI.

  • Let the CLI manage MCP sessions: README explains it auto-handles servers that require mcp-session-id headers.

  • Prefer direct-download binaries for CI or locked-down machines: README shows curl -L -o chatgpt ... && chmod +x one-liners by OS/arch.

Source-backed notes

  • README documents MCP flags (--mcp, --mcp-tool, --mcp-params) and that results are injected as [MCP: <tool-name>] ... messages.
  • README includes Homebrew installation plus direct-download commands for multiple platforms/architectures.
  • README says creating ~/.chatgpt-cli enables history tracking stored under ~/.chatgpt-cli/history/.

FAQ

  • Do I need an API key?: Yes — README instructs setting OPENAI_API_KEY before running the CLI.
  • How do I keep conversation history?: Create ~/.chatgpt-cli; the CLI stores thread history under ~/.chatgpt-cli/history/ (README).
  • Does MCP work with servers requiring a session header?: README says the CLI automatically manages mcp-session-id for HTTP(S) MCP servers.
🙏

Fuente y agradecimientos

Source: https://github.com/kardolus/chatgpt-cli > License: MIT > GitHub stars: 922 · forks: 61

Discusión

Inicia sesión para unirte a la discusión.
Aún no hay comentarios. Sé el primero en compartir tus ideas.

Activos relacionados