openai-copilot

MCP.Pizza Chef: feiskyer

OpenAI Copilot is a command-line interface client that acts as a powerful copilot powered by large language models (LLMs) with full Model Context Protocol (MCP) support. It integrates seamlessly with multiple LLM providers including OpenAI, Azure OpenAI, Anthropic Claude, and Google Gemini, enabling users to access advanced AI capabilities directly from the terminal. The copilot supports web access and Google search without leaving the CLI, and can automatically execute multi-step instructions predicted from prompts. Designed for developers and power users, it bridges external tools via MCP, enhancing productivity and workflow automation in a secure, extensible manner.

Unmaintained · No commits in 16 months.

Use This MCP client To

Interact with LLMs via CLI for coding and automation Execute multi-step tasks predicted from natural language prompts Access web and Google search results within terminal Integrate external MCP tools for enhanced AI workflows Use multiple LLM providers interchangeably Automate terminal-based workflows with AI assistance

README

OpenAI Copilot

Your life Copilot powered by LLM models (CLI interface for LLM models with MCP tools).

Features:

  • OpenAI, Azure OpenAI, Anthropic Claude, Google Gemini and OpenAI-compatible services support.
  • Web access and Google search support without leaving the terminal.
  • Automatically execute any steps predicted from prompt instructions.
  • Model Context Protocol (MCP) support for bridging external tools.

Install

Install the copilot with the commands below:

go install github.com/feiskyer/openai-copilot/cmd/openai-copilot@latest

Setup

Environment Description
OPENAI_API_KEY OpenAI key. Required for OpenAI or OpenAI-compatible services.
OPENAI_API_BASE OpenAI Base URL. Optional.
AZURE_OPENAI_API_KEY Azure OpenAI API key. Required for Azure OpenAI service.
AZURE_OPENAI_API_BASE Azure OpenAI Base URL. Required for Azure OpenAI service.
AZURE_OPENAI_API_VERSION Azure OpenAI API version. Default is 2025-03-01-preview

LLM Integrations

OpenAI

Set the OpenAI API key as the OPENAI_API_KEY environment variable to enable OpenAI functionality.

Anthropic Claude

Anthropic Claude provides an OpenAI compatible API, so it could be used by using following config:

  • OPENAI_API_KEY=<your-anthropic-key>
  • OPENAI_API_BASE='https://api.anthropic.com/v1/'
Azure OpenAI

For Azure OpenAI service, set the following environment variables:

  • AZURE_OPENAI_API_KEY=<your-api-key>
  • AZURE_OPENAI_API_BASE=https://<replace-this>.openai.azure.com/
  • AZURE_OPENAI_API_VERSION=2025-03-01-preview
Google Gemini

Google Gemini provides an OpenAI compatible API, so it could be used by using following config:

  • OPENAI_API_KEY=<your-google-ai-key>
  • OPENAI_API_BASE='https://generativelanguage.googleapis.com/v1beta/openai/'
Ollama or other OpenAI compatible LLMs

For Ollama or other OpenAI compatible LLMs, set the following environment variables:

  • OPENAI_API_KEY=<your-api-key>
  • OPENAI_API_BASE='http://localhost:11434/v1' (or your own base URL)

How to use

Setup the OpenAI or AzureOpenAI environment and then run the following openai-copilot command:

openai-copilot FAQ

How do I install OpenAI Copilot?
Install it using the Go command: go install github.com/feiskyer/openai-copilot/cmd/openai-copilot@latest.
Which environment variables are required to use OpenAI Copilot?
You need to set OPENAI_API_KEY for OpenAI or compatible services, or AZURE_OPENAI_API_KEY and related Azure variables for Azure OpenAI service.
Can OpenAI Copilot access the web or perform Google searches?
Yes, it supports web access and Google search directly from the terminal interface.
Does OpenAI Copilot support multiple LLM providers?
Yes, it supports OpenAI, Azure OpenAI, Anthropic Claude, Google Gemini, and other OpenAI-compatible services.
How does OpenAI Copilot use the Model Context Protocol?
It uses MCP to bridge external tools and provide structured, real-time context to LLMs for enhanced interaction and automation.
Can OpenAI Copilot automatically execute steps from prompts?
Yes, it can predict and automatically execute multi-step instructions derived from user prompts.
Is OpenAI Copilot suitable for developers?
Absolutely, it is designed for developers and power users who want to integrate LLMs into terminal workflows.
What programming languages or platforms does OpenAI Copilot support?
As a CLI tool written in Go, it runs on any platform supporting Go binaries and interacts with LLMs via API keys.