ai
Together AI MCP, CLI, and Lua Integration for AI Agents
Together AI integration docs for AI agents: MCP gateway setup, Together AI CLI commands, Lua API reference, credentials, and function schemas.
7 functions 6 read 1 write API key auth
Together AI for agents
Credentials can be configured manually in web or CLI hosts.
Use this integration from Lua code mode, the headless integrations CLI, or the KosmoKrator MCP gateway. The same package metadata powers all three surfaces.
Machine-Readable Metadata
- integration_slug
together-ai- route_slug
together-ai- package
together-ai- auth_strategy
api_keyAPI key- cli_setup_supported
true- cli_runtime_supported
true- mcp_gateway_supported
true- lua_supported
true- supports_multi_account
true
Quick Links
Lua APIAgent-facing namespace and function reference. Together AI CLIHeadless setup and direct function calls. Together AI MCPMCP gateway setup for external clients. Submit feedbackReport missing tools, auth problems, wrong docs, or runtime issues. ContributeAdd tools or improve metadata in the integrations repo.
Together AI MCP Client Matrix
Use these pages when a specific agent client or framework needs copy-pasteable MCP setup for Together AI.
Claude Code Together AI MCP setup for Claude Code. Cursor Together AI MCP setup for Cursor. Codex Together AI MCP setup for Codex. OpenAI Agents Together AI MCP setup for OpenAI Agents SDK. Claude Agent SDK Together AI MCP setup for Claude Agent SDK. Vercel AI SDK Together AI MCP setup for Vercel AI SDK. LangChain Together AI MCP setup for LangChain. LangGraph Together AI MCP setup for LangGraph. CrewAI Together AI MCP setup for CrewAI. MCP clients Together AI MCP setup for Generic MCP Clients.
Together AI CLI Matrix
Use these pages for direct Together AI CLI workflows in scripts, CI, cron, and agent wrappers.
CI Together AI CLI for CI. Cron Jobs Together AI CLI for cron jobs. Shell Scripts Together AI CLI for shell scripts. Headless Automation Together AI CLI for headless automation. Coding Agents Together AI CLI for coding agents.
Function Catalog
| Function | Type | Parameters | Description |
|---|---|---|---|
together-ai.togetherai_list_models | Read read | 0 | List all available AI models on Together AI, including open-source and fine-tuned models. Returns model IDs, types, pricing, and capabilities. |
together-ai.togetherai_create_completion | Write write | 9 | Create a chat completion using a Together AI model. Send a conversation with messages and receive a generated response. Supports models like Llama, Mixtral, Qwen, DBRX, and more. |
together-ai.togetherai_list_fine_tunes | Read read | 0 | List all fine-tuning jobs on Together AI. Returns job IDs, status, base model, training file, and creation timestamps. |
together-ai.togetherai_get_fine_tune | Read read | 1 | Get details of a specific fine-tuning job on Together AI. Returns status, training progress, hyperparameters, and the output model ID once complete. |
together-ai.togetherai_list_files | Read read | 0 | List all files uploaded to Together AI. Returns file IDs, filenames, sizes, and purposes (e.g. fine-tune training data, results). |
together-ai.togetherai_get_file | Read read | 1 | Get details of a specific file on Together AI. Returns file metadata including name, size, purpose, and creation date. |
together-ai.togetherai_get_current_user | Read read | 0 | Get the authenticated Together AI user's account information, including name, email, and plan details. |