Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
HOSTNoHTTP mode address.127.0.0.1
PORTNoHTTP mode port.3000
LOG_LEVELNodebug, info, warn, error or silent. Logs go to stderr.info
MAX_RETRIESNoAutomatic retries on rate limits and server errors.2
XAI_API_KEYNoxAI Grok API key.
CORS_ORIGINSNoBrowser origins allowed to call the HTTP endpoint.
OPENAI_MODELNoDefault chat model.gpt-5.6-sol
ALLOWED_HOSTSNoExtra allowed Host headers when binding to 0.0.0.0.
OPENAI_ORG_IDNoBill to a specific organisation.
ALLOWED_MODELSNoComma-separated allow-list, e.g. gpt-5.6-sol,gpt-image-2.(any)
GEMINI_API_KEYNoGoogle Gemini API key.
MAX_FILE_BYTESNoSize limit for shared files.200000
MAX_TEAM_CALLSNoMost AI calls one ai_team session may make.20
MCP_AUTH_TOKENNoBearer token required in HTTP mode.
OLLAMA_ENABLEDNoSet to "true" to enable local Ollama models (no API key needed).
OPENAI_API_KEYNoChatGPT (OpenAI) API key. At least one provider key is required; see also GEMINI_API_KEY, XAI_API_KEY, ANTHROPIC_API_KEY, DEEPSEEK_API_KEY and OLLAMA_ENABLED.
OPENAI_BASE_URLNoPoint at Azure OpenAI, OpenRouter, Ollama, etc.OpenAI
DEEPSEEK_API_KEYNoDeepSeek API key.
DEFAULT_PROVIDERNoWhich AI the tools use when none is named.openai
IMAGE_OUTPUT_DIRNoAlso save generated images to this folder.(off)
ALLOWED_FILE_DIRSNoFolders the AIs may read files from. File sharing is off until set.(off)
ANTHROPIC_API_KEYNoAnthropic Claude API key.
MAX_CONVERSATIONSNoThreads held at once (least recently used dropped first).200
MAX_OUTPUT_TOKENSNoDefault reply length limit.4096
OPENAI_PROJECT_IDNoBill to a specific project.
OPENAI_IMAGE_MODELNoDefault image model.gpt-image-2
REQUEST_TIMEOUT_MSNoPer-request timeout.120000
MAX_HISTORY_MESSAGESNoMessages kept per conversation (system prompt always kept).40
MAX_TOTAL_FILE_BYTESNoTotal size limit for shared files.600000
DEFAULT_SYSTEM_PROMPTNoInstructions applied to every chatgpt_ask call.
CONVERSATION_STORE_PATHNoJSON file to keep threads across restarts.(memory)
CONVERSATION_TTL_MINUTESNoIdle threads are forgotten after this long.1440

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server connects you to ChatGPT and other AI models (Gemini, Grok, Claude, DeepSeek, Mistral, Llama, Perplexity, Kimi, Qwen, Cohere, local models).

  • chatgpt_ask: send ChatGPT (the default AI) a message. Pass a conversation_id to keep a multi-turn thread.

  • ai_ask: ask a specific AI by name (provider="gemini", "grok", "claude", ...).

  • ai_panel: ask every configured AI the same question at once, then summarise agreement and disagreement.

  • ai_team: make several AIs work together on a task with roles (review loop, discussion or pipeline). Pass your own draft to have the team improve your work.

  • ai_list_providers: see which AIs are switched on and how to add more.

  • Files can be shared with the AIs through the 'files' input (only from folders in ALLOWED_FILE_DIRS).

  • chatgpt_second_opinion / chatgpt_code_review / chatgpt_debate: get a critical outside view.

  • chatgpt_structured: get a JSON object back.

  • chatgpt_compare_models: run one prompt on several models side by side.

  • chatgpt_generate_image: create images.

  • chatgpt_list_models / chatgpt_server_info: discover models and check the bridge. The other AIs cannot see your conversation with the user. Always include the full context they need. Tell the user which AI each answer came from.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}
logging
{}
prompts
{
  "listChanged": true
}
resources
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
chatgpt_askA

Send a message to ChatGPT (or the bridge's default AI) and get its reply. Use this when the user asks to 'ask ChatGPT' or wants a second model's view. For a multi-turn chat, pass the same conversation_id on every call. To ask a different AI by name (Gemini, Grok, Claude, DeepSeek...), use ai_ask instead. The other AI cannot see this conversation, so include all the context it needs.

ai_askA

Send a message to a specific AI model: ChatGPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, Perplexity, Kimi, Qwen, Cohere, models on Groq or OpenRouter, or a local model via Ollama/LM Studio. Use this whenever the user names an AI ('ask Gemini', 'what does Grok think'). Pass the same conversation_id to keep a multi-turn thread with that AI.

chatgpt_list_conversationsA

List the conversation threads this bridge is holding (with ChatGPT or any other AI), newest first.

chatgpt_get_conversationA

Show the full message history of one ChatGPT conversation thread.

chatgpt_reset_conversationA

Forget a ChatGPT conversation so the next message with that ID starts fresh. Set all=true to delete every conversation.

chatgpt_second_opinionA

Ask ChatGPT (or any AI, via provider) to critically review an answer, plan or piece of writing, for example Claude's own draft, and say what is right, wrong or missing. Useful for cross-checking important answers between models.

chatgpt_code_reviewA

Have ChatGPT (or any AI, via provider) review code for bugs, security problems, performance and readability, with severity ratings and suggested fixes.

chatgpt_structuredA

Ask ChatGPT (or any AI, via provider) for a machine-readable JSON object (for example, extracting fields from text, classifying items, or generating test data). Describe the shape you want in json_shape.

chatgpt_debateA

Ask ChatGPT (or any AI, via provider) to argue against (or for) a position so you can stress-test an idea. ChatGPT gives its strongest arguments, then the best counter-points, then a balanced conclusion.

chatgpt_compare_modelsA

Send the same prompt to 2 to 8 models in parallel and return their answers side by side, with timing and token usage. Entries can be model IDs ('gpt-5.6-sol'), provider names ('gemini', 'grok', 'claude') or 'provider:model' ('xai:grok-4.6'). Use it to choose a model or to see where models disagree.

ai_panelA

Ask several different AIs the same question at once (by default every AI configured in the bridge, up to 8) and get all their answers side by side. Use it when the user wants a consensus, a 'council', or to see what ChatGPT, Gemini, Grok, DeepSeek and others each think. Afterwards, summarise where they agree and disagree.

ai_teamA

Make several AI models work together as a team on a task, for work or code. Modes: 'review' (first member writes or revises, the others review, repeated for several rounds until approved; pass your own draft to have the team improve YOUR work), 'discussion' (all answer, then read each other's answers and refine), 'pipeline' (each member does its role in order, e.g. researcher -> writer -> editor). Roles: author, coder, reviewer, critic, security, tester, researcher, writer, editor, planner, devils_advocate, summariser, expert, or any custom role text. Use for code reviews, document drafting, planning, decisions and debugging. Afterwards, check the result yourself and tell the user which AI did what.

chatgpt_generate_imageA

Create an image from a text description using OpenAI's image model (the same family ChatGPT uses). The image is returned so Claude can see and describe it. If IMAGE_OUTPUT_DIR is set, it is also saved to disk.

ai_list_providersA

List every AI the bridge can connect to (ChatGPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, Perplexity, Kimi, Qwen, Cohere, Groq, OpenRouter, Ollama, LM Studio), which ones are switched on, their default models, and exactly which setting turns each one on.

chatgpt_list_modelsA

List the model IDs an AI provider offers to your key (ChatGPT by default; pass provider for others). Use this to pick a value for the 'model' parameter or to troubleshoot 'model not found' errors.

chatgpt_server_infoA

Show the bridge version, which AI providers are switched on and the current settings (never shows API keys). Use to check the bridge is working.

Prompts

Interactive templates invoked by user choice

NameDescription
team_buildClaude plans, an AI team critiques the plan, Claude builds, the team reviews the result.
team_writeA researcher, a writer and an editor (different AIs) produce a document; Claude checks it.
cross_checkClaude answers a question, then asks ChatGPT for a second opinion and reconciles the two.
councilClaude and ChatGPT each propose an approach to a problem, then Claude merges the best of both.
review_my_codeClaude and ChatGPT both review the same code; Claude merges and de-duplicates the findings.

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A3.6/5.0

Scored across 16 tools

Disambiguation3/5

The descriptions do a good job separating chatgpt_ask from ai_ask (default vs named provider), but the pair still overlaps since nearly every chatgpt_* tool secretly accepts any provider. The bigger collision is chatgpt_compare_models vs ai_panel, which both fan a prompt out to multiple models in parallel and return side-by-side answers, differentiated mainly by input format rather than purpose. The prompt-preset tools (second_opinion, code_review, debate) are also close cousins that an agent could easily misselect between.

Naming Consistency3/5

Two competing prefixes coexist: chatgpt_* (12 tools) and ai_* (4 tools), and the chatgpt_ prefix is actively misleading because those tools accept Gemini, Grok, Claude and others. Suffixes mix noun-actions (chatgpt_ask, ai_ask), verb_noun list/get/reset patterns, and concept names (chatgpt_debate, chatgpt_structured). It remains readable, but the pattern is not predictable from a name alone.

Tool Count3/5

16 tools is on the heavy side for what is essentially a chat-and-fan-out bridge. Several tools (second_opinion, code_review, debate, structured) are prompt templates that could collapse into one ask tool with a mode parameter, so a few slots are not truly earning their place.

Completeness4/5

Coverage is broad: single-model chat, conversation list/get/reset, provider and model discovery, server health, multi-model comparison, team workflows and image generation. Minor gaps exist—conversation history is only retrievable per ChatGPT thread (no generic get for other providers), and there is no tool to actually toggle a provider on despite documenting which setting does it.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues