Tuning Engines
The Tuning Engines server lets you fine-tune open-source LLMs/SLMs on your GitHub repos and manage the full ML lifecycle via CLI or MCP tools.
Training Jobs
Create fine-tuning jobs using agents like Cody (code autocomplete) or SIERA (bug-fix specialist) on GitHub repos
Estimate costs before submission; monitor live status including GPU usage and estimated charges
List, view, cancel, and retry failed jobs from checkpoints
Validate S3 credentials before submitting jobs with S3 export
Models
List, view, and delete trained/imported models
Import from or export to S3; check import/export status
Browse supported base models (Qwen, Llama, DeepSeek, Mistral, CodeLlama, StarCoder, Gemma, Phi — 1B to 72B parameters)
Use LoRA, QLoRA, or full fine-tuning; iteratively fine-tune previously trained models
Datasets
Create, list, view, and delete datasets sourced from S3 for training or evaluation
Evaluations
Create, list, cancel, and monitor evaluations against datasets using evaluators like code execution, similarity, or LLM judge
Estimate evaluation costs and view detailed scores/metrics
Inference
List available inference models, view API usage stats, and retrieve JWT tokens for direct API access
Agents
List and view details of available specialized training agents
Account & Billing
Check balance, view transaction history, add credits, and manage account details
Configuration
Set API key, override API URL, and view current config
Allows the server to use GitHub repositories as the data source for fine-tuning LLMs and SLMs, enabling the creation of specialized agents like 'Cody' for code autocomplete and 'SIERA' for bug-fix specialization.
Tuning Engines CLI & MCP Server
Govern every AI workflow through one API.
Tuning Engines is a governed AI runtime for model, agent, skill, and MCP workflows. Route inference through one OpenAI-compatible API, apply RBAC and traffic policies, request approvals for high-risk actions, inspect traces and usage, and connect durable orchestration frameworks such as LangGraph and Temporal. The same CLI and MCP server also manage domain-specific fine-tuning of open-source models.
Training Agents
Tuning Engines uses specialized agents that control how your data is analyzed and converted into training data. Each agent produces a different kind of domain-specific fine-tuned model optimized for its use case. Current agents focus on code, with more coming for customer support, data extraction, security review, ops, and other domains.
Cody (code_repo) — Code Autocomplete Agent
Cody fine-tunes on your GitHub repo using QLoRA (4-bit quantized LoRA) via the Axolotl framework (HuggingFace Transformers + PEFT). It learns your codebase's patterns, naming conventions, and project structure to produce a fast, lightweight adapter optimized for real-time completions.
Best for: code autocomplete, inline suggestions, tab-complete, code style matching, pattern completion.
te jobs create --agent code_repo \
--base-model Qwen/Qwen2.5-Coder-7B-Instruct \
--repo-url https://github.com/your-org/your-repo \
--output-name my-cody-modelSIERA (sera_code_repo) — Bug-Fix Specialist
SIERA (Synthetic Intelligent Error Resolution Agent) uses the Open Coding Agents approach from AllenAI to generate targeted bug-fix training data from your repository. It synthesizes realistic error scenarios and their resolutions, then fine-tunes a model that learns your team's debugging style, error handling conventions, and fix patterns.
Best for: debugging, error resolution, patch generation, root cause analysis, fix suggestions.
te jobs create --agent sera_code_repo \
--quality-tier high \
--base-model Qwen/Qwen2.5-Coder-7B-Instruct \
--repo-url https://github.com/your-org/your-repo \
--output-name my-siera-modelQuality tiers (SIERA only):
low— Faster, fewer synthetic pairs (default)high— Deeper analysis, more training data, better results
Coming Soon
Agent | Persona | What it does |
Resolve | Mira | Fine-tunes on support tickets, macros, and KB articles for automated ticket resolution |
Extractor | Flux | Trains for strict schema extraction from docs, PDFs, and business text |
Guard | Aegis | Security-focused code reviewer that catches risky patterns and proposes safer fixes |
OpsPilot | Atlas | Incident response agent trained on runbooks, postmortems, and on-call notes |
Related MCP server: ML Lab MCP
Supported Base Models
Size | Models |
3B |
|
7B |
|
13-15B |
|
32-34B |
|
70-72B |
|
Quick Start
npm install -g tuningengines-cli
# Or run without installing
npx -y --package tuningengines-cli@latest te auth status
# Sign up or log in (opens browser — works for new accounts too)
te auth login
# Add credits (opens browser to billing page)
te billing add-credits
# Estimate cost before training
te jobs estimate --base-model Qwen/Qwen2.5-Coder-7B-Instruct
# Train Cody on your repo
te jobs create --agent code_repo \
--base-model Qwen/Qwen2.5-Coder-7B-Instruct \
--repo-url https://github.com/your-org/your-repo \
--output-name my-model
# Monitor training
te jobs status <job-id> --watch
# View your trained models
te models list
# Create a governed orchestration starter
te orchestration init langgraph
te orchestration init temporal
te orchestration init inngest
te orchestration init triggerdev
te orchestration init hatchet
te orchestration init restate
te orchestration init dbos
te orchestration init dapr
te orchestration init prefect
te orchestration init dagster
te orchestration init airflowMCP Server Setup
The CLI includes a built-in MCP server with 60+ tools. Any AI assistant that supports MCP can fine-tune models, manage training jobs, run evaluations, check inference usage, inspect traces, review approvals, and manage non-secret tenant registry metadata through natural language.
For security, the MCP server intentionally does not expose internal proxy routes. It also refuses MCP-side inference-key creation and raw secret-bearing mutation fields. Use the CLI or web UI for workflows that intentionally create one-time keys, submit raw provider secrets, validate S3 credentials, or import/export S3 assets with raw credentials.
Claude Desktop
Add to ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"tuning-engines": {
"command": "npx",
"args": ["-y", "--package", "tuningengines-cli@latest", "te", "mcp", "serve"],
"env": {
"TE_API_KEY": "te_your_key_here"
}
}
}
}Claude Code
claude mcp add tuning-engines -- npx -y --package tuningengines-cli@latest te mcp serveWork Sessions and outcomes
Label the desired outcome for a project without interrupting your coding workflow:
te goal start "Fix flaky checkout retries"
te goal show
te goal complete --result succeededInstall optional native telemetry hooks for Claude Code or Codex:
te guard claude-code install --mode observe --project .
te guard claude-code doctor
te guard claude-code doctor --probe
te guard codex install
te guard codex doctorClaude Code writes project-local hooks into .claude/settings.local.json. On
Windows, verify with dir .\.claude, type .\.claude\settings.local.json,
then restart Claude Code from the same project root and review claude /hooks.
doctor --probe is available in tuningengines-cli 0.4.20 and later; it runs
synthetic hook events through the installed commands and checks that the trace is
visible to Tuning Engines. Hook invocations also write a local redacted status
log at .claude/tuning-engines-hook-status.jsonl.
Codex project hooks require review and trust from /hooks. The installer pins
hooks to the exact CLI executable that created them; te guard codex doctor
reports that path, CLI version, native-event contract, required lifecycle
hooks, and any conflicting te command found on PATH. Each Codex or Claude
Code user prompt starts a new trace while retaining one stable Work Session for
the native conversation. Tuning Engines sends pseudonymous session and
transcript references by default, not transcript contents or local absolute
paths.
Claude Code Plugin
The repository also ships a Claude Code plugin wrapper around the same MCP
server. It keeps installation discoverable while preserving the same
TE_API_KEY environment-variable boundary:
claude plugin marketplace add cerebrixos-org/tuning-engines-cli
claude plugin install tuning-engines@tuning-enginesThe same plugin directory includes a Codex plugin manifest, marketplace entry, MCP server, and tenant-operations skill. It uses the Tuning Engines web app as the shared control-plane UI for traces, approvals, policies, cost, and review.
DeepSeek Harness Plugin
Install the native Harness bundle to capture turn, model-step, and tool lifecycle telemetry and optionally enforce TE governance before tool execution:
export TE_API_KEY="your-tenant-token-or-inference-key"
dsh plugin --profile default add tuningengines-cliThe adapter uses a disk-backed local spool, background batching, bounded retries, stable tool-call correlation, and metadata-only capture by default.
VS Code / Cursor / Windsurf
Add to your MCP settings (.vscode/mcp.json or equivalent):
{
"servers": {
"tuning-engines": {
"command": "npx",
"args": ["-y", "--package", "tuningengines-cli@latest", "te", "mcp", "serve"],
"env": {
"TE_API_KEY": "te_your_key_here"
}
}
}
}What the AI assistant can do
When connected, your AI assistant can:
"Fine-tune Qwen 7B on my-org/my-repo using the SIERA agent with high quality"
"How much would it cost to train a 32B model for 3 epochs on this repo?"
"Check the status of my latest training job"
"List my trained models"
"Export my model to s3://my-bucket/models/"
"Show my account balance"
"Train a bug-fix specialist on this repo" (auto-selects SIERA)
"Create an autocomplete model for this codebase" (auto-selects Cody)
The create_job tool description includes full agent details and model lists, so AI assistants automatically select the right agent and model based on what you ask for.
Unified API Endpoint
Tuning Engines can be used anywhere a tool accepts an OpenAI-compatible API base URL. Point the client at:
https://api.tuningengines.com/v1Use an inference key that starts with sk-te-... for live model calls, and use
the model IDs shown by:
te inference modelsThis lets OpenCode, Temporal activities, LangGraph apps, OpenAI SDK clients, and other custom-provider clients route through the same Tuning Engines control plane for model RBAC, routing, fallbacks, guardrails, AGT policy, traces, usage metering, and cost attribution.
See docs/unified-api-endpoint.md for copy-paste examples for OpenCode, Temporal, Python, JavaScript, and other OpenAI-compatible clients.
Agent Runtime SDK and Orchestration Starters
Use the CLI/MCP package when you want npx tools for assistants. Use the
Python SDK when you want your own app to run durable agent workflows while
Tuning Engines remains the governed control plane for models, agents, skills,
MCP tools, RBAC, AGT policy, audit, usage, and token economics.
OpenAI Agents SDK users can install the native model and trace integration:
pip install "tuning-engines[openai-agents]"See packages/tuning-agents/README.md for setup. The OpenAI Agents runtime owns the loop; TE supplies the governed endpoint and receives metadata-only SDK traces through its background processor.
Install the published Python SDK:
pip install "tuning-engines[langgraph]"
pip install "tuning-engines[temporal]"The package installs the tuning_agents Python module.
LangGraph example:
from langgraph.checkpoint.memory import InMemorySaver
from tuning_agents import TuningClient
from tuning_agents.langgraph import create_tuning_langgraph_agent, invoke_with_trace
client = TuningClient(api_key="te_your_key_here")
agent = create_tuning_langgraph_agent(
client,
model="llama-3.3-70b-fp8",
agent_names=["billing-escalation"],
checkpointer=InMemorySaver(),
interrupt_before=["tools"],
)
result = invoke_with_trace(
client,
agent,
[{"role": "user", "content": "Triage this ticket and escalate if needed."}],
thread_id="ticket-123",
)
client.flush_trace(name="ticket-triage", runtime="langgraph", status="succeeded")Temporal example:
from tuning_agents.temporal import (
TuningEnginesTemporalFeatures,
create_tuning_engines_plugin,
define_temporal_workflow,
)
plugin = create_tuning_engines_plugin(
features=TuningEnginesTemporalFeatures(
built_in_workflow=False,
model_calls=True,
skill_tools=True,
mcp_tools=True,
agents=True,
approvals=True,
traces=True,
state_references=True,
interventions=True,
model_catalog=True,
usage=True,
)
)
TuningAgentWorkflow = define_temporal_workflow()
# Pass plugin to Client.connect(..., plugins=[plugin]) and register the workflow.The SDK captures runtime events from LangGraph/Temporal and posts them to
POST /api/v1/traces. Each event carries a run_id, request_id, and a
normalized event type such as model.call, mcp.tool_call, agent.message,
workflow.step, human.edit, action.finalized, outcome.recorded, or
state.reference. The app pairs that with inference usage, request capture,
policy decisions, approval requests, external state references, audit, and
billing logs.
JavaScript/TypeScript users can also import lightweight tracing helpers from the npm package:
import { createOpenAIAgentsTraceAdapter } from "tuningengines-cli/adapters/openai-agents";
import { createClaudeAgentSdkTraceAdapter } from "tuningengines-cli/adapters/claude-agent-sdk";Both helpers send redacted run, model, tool, handoff, error, goal, and outcome
events to the existing trace API. goal_key, goal_status, and goal_score
are normalized into the same success-signal analytics as outcome_key.
For decision traces, store redacted signals in metadata.decision, for example
proposal_summary, changed_fields, change_summary, final_action,
outcome_label, and reason_summary. Do not place raw prompts, provider keys,
tenant secrets, or full customer data in trace metadata.
Generate a starter kit:
te orchestration init langgraph --dir ./lg-te-demo
te orchestration init temporal --dir ./temporal-te-demo
te orchestration init inngest --dir ./inngest-te-demo
te orchestration init triggerdev --dir ./trigger-te-demo
te orchestration init hatchet --dir ./hatchet-te-demo
te orchestration init restate --dir ./restate-te-demo
te orchestration init dbos --dir ./dbos-te-demo
te orchestration init dapr --dir ./dapr-te-demo
te orchestration init prefect --dir ./prefect-te-demo
te orchestration init dagster --dir ./dagster-te-demo
te orchestration init airflow --dir ./airflow-te-demoLangGraph and Temporal starters use the Python runtime SDK. Inngest, Trigger.dev, and Hatchet starters generate TypeScript projects with a small self-contained Tuning Engines helper. Restate, DBOS, and Dapr starters use the same TypeScript helper. Prefect, Dagster, and Airflow starters generate Python workflow examples with a small helper module. All generated examples include governed model calls, trace flushing, registry manifests, policy context metadata, decision metadata, runtime state references, and approval retry patterns.
CLI Commands
Authentication
Command | Description |
| Sign up or log in via browser |
| Clear saved credentials |
| Show current auth status (email, balance) |
Training Jobs
Command | Description |
| List all training jobs |
| Show job details |
| Submit a training job ( |
| Live status ( |
| Cancel a running job |
| Retry from last checkpoint |
| Cost estimate before submitting |
| Pre-validate S3 credentials |
Models
Command | Description |
| List your trained models |
| Show model details |
| List supported base models |
| Import a model from S3 |
| Export a model to S3 |
| Delete a model |
| Check import/export status |
Datasets
Command | Description |
| List all datasets |
| Show dataset details |
| Create a dataset from S3 ( |
| Delete a dataset |
| Check import/processing status |
Evaluations
Command | Description |
| List all evaluations |
| Show evaluation details and scores |
| Run an evaluation ( |
| Cancel a running evaluation |
| Live evaluation progress |
| List available evaluators |
| Cost estimate for an evaluation |
Inference
Command | Description |
| List available inference models |
| Show inference API usage stats |
| Get a JWT for direct API access |
| Exchange an inference key ( |
| Run an OpenAI-compatible chat completion |
| Run an OpenAI Responses request |
| Create embeddings |
| Run an Anthropic-compatible Messages request |
Runtime Traces and Approvals
Command | Description |
| List LangGraph, Temporal, and custom runtime traces |
| Show one trace, including events, policy decisions, and approvals when linked |
| Ingest or update a trace using a user API token or inference key |
| List observed outcomes, goals, evals, and workflow success signals |
| Record a success signal for a run |
| Map unmapped events to an outcome key |
| List Insight Loop recommendations |
| Accept an insight as valid; does not change production |
| Apply or queue the approved action for an accepted insight |
| Simulate inference access, role, endpoint, policy, and resource checks |
| List AGT YAML policy decisions |
| Show one policy decision with redacted context |
| List curated AGT YAML policy templates |
| Render disabled/shadow policy YAML from safe structured parameters |
| Generate an AI-assisted disabled/shadow draft for review and testing |
| List policy approval requests |
| Show approval detail and retry metadata |
| Approve a pending request |
| Deny a pending request |
| Manage runtime pause, resume, cancel, and replay requests |
| Manage safe external workflow-state and memory references |
| Diff or apply agent, skill, and MCP registry manifests |
| Inspect an applied registry sync |
| Inspect and update Work Sessions |
| Manage strategic initiative groupings |
Orchestration Starters
Command | Description |
| Create a LangGraph starter wired to Tuning Engines governance and traces |
| Create a Temporal worker starter wired to Tuning Engines governance and traces |
| Create an Inngest function starter wired to Tuning Engines governance and traces |
| Create a Trigger.dev task starter wired to Tuning Engines governance and traces |
| Create a Hatchet workflow starter wired to Tuning Engines governance and traces |
| Create a Restate service starter wired to Tuning Engines governance and traces |
| Create a DBOS workflow starter wired to Tuning Engines governance and traces |
| Create a Dapr Workflow starter wired to Tuning Engines governance and traces |
| Create a Prefect flow starter wired to Tuning Engines governance and traces |
| Create a Dagster asset starter wired to Tuning Engines governance and traces |
| Create an Airflow DAG starter wired to Tuning Engines governance and traces |
Agents
Command | Description |
| List available agents |
| Show agent details and capabilities |
| Send a governed A2A agent message |
Skills and MCP Execution
Command | Description |
| List skills visible to the inference identity |
| Prepare a governed skill |
| Invoke a governed skill |
| Call an enabled governed MCP tool |
| Refresh MCP tool discovery |
| Administer discovered MCP tools |
Compliance Automation
Command | Description |
| Validate bounded content against adopted rulepacks |
| Produce and revalidate a safe rewrite |
| Inspect compliance evidence |
| Manage the tenant risk register |
| Operate the risk-to-control lifecycle |
| Ingest normalized scanner or webhook results |
| Run and inspect compliance certification jobs |
Tenant Admin Automation
These commands require an API token for a tenant owner or tenant admin. They are designed for CI smoke tests and end-to-end product checks. Secret fields can be sent on create/update where the server supports them, but responses never print stored provider keys, AWS secrets, or invitation tokens.
Command | Description |
| List supported tenant resource names |
| List resources such as |
| Show one tenant resource |
| Create a tenant resource from JSON |
| Update a tenant resource from JSON |
| Delete a tenant resource; inference keys are revoked |
| Validate/test an unsaved simple guardrail without creating records |
| Validate/test an unsaved Governance Rule without creating records |
| Dry-run a Governance Rule |
| Compatibility alias for governance policy dry-runs |
| List tenant members, pending invitations, and allowed domains |
| Invite a user by email; the invite token is emailed and never printed |
| Assign an inference role to a member |
| Disable a member |
| Re-enable a member |
| Remove a member |
| Cancel a pending invitation |
| Replace allowed email domains |
| Show inference capture settings |
| Update inference capture settings |
Billing & Account
Command | Description |
| Balance and transaction history |
| Open browser to add credits |
| Account info |
Configuration
Command | Description |
| Set API key manually |
| Override API URL |
| Show current config |
All commands support --json for machine-readable output.
MCP Tools Reference
Training Jobs
Tool | Description |
| Fine-tune an LLM on a GitHub repo. Supports agent selection (Cody, SIERA), quality tier, base model, epochs, S3 export. |
| Cost estimate before training. Returns cost range, balance, sufficiency check. |
| List training jobs with status filter |
| Full job details including agent, model, GPU usage, cost, retry info |
| Live status with GPU minutes, charges, delivery progress |
| Cancel a running/queued job |
| Retry a failed job from its last checkpoint |
Models
Tool | Description |
| List trained and imported models |
| Model details (status, size, base model, training job) |
| Delete a model from cloud storage |
| Import/export progress |
| Available base models with GPU hours per epoch |
Marketplace
Tool | Description |
| Browse pre-built models and datasets |
| Details of a marketplace item |
| Check marketplace export progress |
Datasets
Tool | Description |
| List datasets for training and evaluation |
| Dataset details and status |
| Create a dataset from S3 |
| Delete a dataset |
| Check dataset import/processing status |
Evaluations
Tool | Description |
| List model evaluations |
| Evaluation details, scores, and metrics |
| Run an evaluation against a dataset |
| Cancel a running evaluation |
| Live evaluation progress |
| Available evaluators (code_execution, similarity, llm_judge, etc.) |
| Cost estimate for an evaluation |
Inference
Tool | Description |
| Models available for inference |
| Inference API usage statistics |
| Get JWT token for direct API access |
| Exchange an inference key for a short-lived inference JWT |
| Call chat, Responses, embeddings, or Messages using the configured credential |
| Send a governed A2A agent message |
| Discover, prepare, or invoke governed skills |
Runtime, Policy, and Approvals
Tool | Description |
| List runtime traces |
| Show a trace with linked events, policy decisions, and approvals |
| Ingest a trace payload without secrets |
| List observed outcomes/goals normalized as success signals |
| List Insight Loop recommendations |
| Show one Insight Loop recommendation |
| Simulate inference access, role, endpoint, policy, and resource checks |
| Record an outcome/goal signal; requires |
| Create an outcome mapping rule; requires |
| Accept an insight for review; requires |
| Apply or queue an accepted insight; requires |
| List AGT YAML policy decisions |
| Show one decision with redacted context |
| List curated AGT YAML policy templates |
| Render disabled/shadow policy YAML from safe structured parameters |
| Generate an AI-assisted disabled/shadow draft; secret-looking prompts are refused |
| List policy approval requests |
| Show one approval request |
| Approve a pending request |
| Deny a pending request |
| Inspect runtime control requests |
| Operate intervention lifecycle; requires |
| Manage safe external state and memory pointers |
| Diff, apply, and inspect registry manifests |
| Inspect and complete Work Sessions |
| Inspect initiative groupings |
| Inspect the tenant risk register |
| Validate content and inspect evidence |
| Ingest normalized external test results; writes require |
| Inspect a certification run |
Tenant Admin MCP Tools
These tools require a tenant owner/admin API token. The MCP server refuses internal proxy routes, inference-key creation, and raw secret-bearing mutation fields.
Tool | Description |
| List allowlisted tenant resource names |
| List models, roles, policies, MCP servers, agents, skills, credential sources, and related metadata |
| Show one resource without returning stored secrets |
| Create non-secret tenant registry/config metadata |
| Update non-secret tenant registry/config metadata |
| Delete or revoke a tenant resource |
| Validate/test unsaved guardrail or AGT policy payloads without creating records |
| Dry-run an AGT YAML governance policy |
| List members, invitations, and allowed domains |
| Invite a user without returning invitation tokens |
| Assign or clear an inference role |
| Disable or re-enable a member |
| Remove a tenant member |
| Cancel a pending invitation |
| Replace allowed email domains |
| Manage request-capture settings using credential-source references |
Agents
Tool | Description |
| List available agents |
| Agent details and capabilities |
Account
Tool | Description |
| Account balance and recent transactions |
| Account details |
Environment Variables
Variable | Description |
| API key (overrides config file) |
| API URL (default: |
| Optional |
| Inference base URL (default: |
Tenant management commands keep the configured te_* API token local and
exchange it for a short-lived management JWT before calling the API. Inference
keys (sk-te-*) are for inference-only flows such as te inference token and
proxy calls; they are not accepted for tenant registry management commands.
Inference Smoke Testing
Use te-inference-smoke to exercise inference behavior as a tenant admin and, optionally, real tenant users. The default run is read-only. Set TE_SMOKE_MUTATE=1 to create temporary inference roles, keys, policies, guardrails, MCP servers, agents, and skills, then test permission permutations and clean them up.
If you only have an sk-te-* inference key, set TE_INFERENCE_KEY for
proxy-only checks. Full role/user/policy permutations require a tenant-admin
app API key that starts with te_.
TE_API_URL=https://app.tuningengines.com \
TE_ADMIN_API_KEY=te_admin_key_here \
TE_USER_API_KEY=te_user_key_here \
npx -y --package tuningengines-cli@latest te-inference-smokeFor actual proxy model calls, enable live calls explicitly:
TE_API_URL=https://app.tuningengines.com \
TE_INFERENCE_BASE=https://api.tuningengines.com/v1 \
TE_ADMIN_API_KEY=te_admin_key_here \
TE_SMOKE_MUTATE=1 \
TE_SMOKE_LIVE_CALLS=1 \
TE_SMOKE_CREATE_MODEL_DEPLOYMENT=1 \
TE_SMOKE_ALLOWED_MODEL=llama-3.1-8b-fast \
TE_SMOKE_DENIED_MODEL=llama-3.3-70b-fp8 \
TE_SMOKE_AGENT_URL=https://httpbin.org/post \
npx -y --package tuningengines-cli@latest te-inference-smokeTE_SMOKE_CREATE_MODEL_DEPLOYMENT=1 is useful for disposable tenants that do
not already have an enabled model. By default the runner treats a provider
authentication failure on an allowed model as proof that Tuning Engines RBAC
allowed the request through to the provider. Set
TE_SMOKE_ALLOW_PROVIDER_AUTH_FAILURE=0 when the tenant has real provider
credentials and the allowed call must return 200.
To test multiple tenant users, provide their API tokens:
TE_SMOKE_USERS_JSON='[
{"email":"member1@example.com","api_key":"te_user_key_1"},
{"email":"member2@example.com","api_key":"te_user_key_2"}
]' \
TE_ADMIN_API_KEY=te_admin_key_here \
TE_SMOKE_MUTATE=1 \
npx -y --package tuningengines-cli@latest te-inference-smokePreview coverage:
npx -y --package tuningengines-cli@latest te-inference-smoke --listEach run writes a masked JSON report under te-smoke-results/, or to
TE_SMOKE_REPORT when that env var is set.
Authentication
te auth login uses a secure device authorization flow (same pattern as gh auth login):
CLI generates a device code and opens your browser
Sign up or log in (email/password, Google, or GitHub)
Click "Authorize" to grant CLI access
Token flows back automatically — no copy-paste
Works for both new sign-ups and existing accounts. Token saved to ~/.tuningengines/config.json with 0600 permissions.
Links
License
MIT
Available Tools
38 toolscancel_evaluationB
Cancel a running or queued evaluation.
Inputs: evaluation_id (required).
cancel_jobA
Cancel a running or queued fine-tuning job. The job will be charged for any GPU time already used.
Inputs: job_id (required).
catalog_export_statusA
Check the status of a Marketplace export operation. Returns status, charge info, and any error messages.
Inputs: model_id (required), export_id (required).
create_datasetA
Create a new dataset by importing from S3. Datasets can be used for fine-tuning or model evaluation.
Inputs: name (required), source_type (required), description, s3_url, +4 more.
create_evaluationA
Create a new model evaluation. Run your trained model or a base model against a dataset using selected evaluators. Use list_evaluators to see available evaluators (e.g. code_execution, similarity, llm_judge).
Inputs: dataset_id (required), evaluator_ids (required), name, user_model_id, +2 more.
create_jobA
Fine-tune an LLM on a GitHub repository using Tuning Engines. This trains a custom model that learns from the code patterns, style, and conventions in the repo. Choose an agent to control the training approach:
AVAILABLE AGENTS:
agent='code_repo' (Cody) — LoRA-based code fine-tuning using QLoRA (4-bit quantized LoRA) via the Axolotl framework. Trains on your repo's code patterns, naming conventions, and project structure to produce a fast, lightweight adapter. Best for: code autocomplete, inline suggestions, tab-complete, code style matching.
agent='sera_code_repo' (SIERA) — Bug-fix specialist using the Open Coding Agents approach from AllenAI. Generates synthetic error-resolution training pairs from your repo, producing a model that understands your codebase's failure patterns and fix conventions. Best for: debugging, error resolution, patch generation, root cause analysis. Supports quality_tier='low' (faster) or quality_tier='high' (deeper analysis, more training data).
SUPPORTED BASE MODELS (by size):
3B: Qwen/Qwen2.5-Coder-3B-Instruct
7-8B: codellama/CodeLlama-7b-hf, deepseek-ai/deepseek-coder-7b-instruct-v1.5, Qwen/Qwen2.5-Coder-7B-Instruct, Qwen/Qwen3-8B
13-15B: codellama/CodeLlama-13b-Instruct-hf, bigcode/starcoder2-15b, Qwen/Qwen2.5-Coder-14B-Instruct, Qwen/Qwen3-14B
22-27B: mistralai/Codestral-22B-v0.1, google/gemma-2-27b
30-34B: deepseek-ai/deepseek-coder-33b-instruct, codellama/CodeLlama-34b-Instruct-hf, Qwen/Qwen2.5-Coder-32B-Instruct, Qwen/Qwen3-Coder-30B-A3B, Qwen/Qwen3-32B
70-72B: codellama/CodeLlama-70b-Instruct-hf, meta-llama/Llama-3.1-70B-Instruct, Qwen/Qwen2.5-72B-Instruct
TYPICAL WORKFLOW: estimate_job first to check cost, then create_job, then job_status to monitor progress.
Inputs: output_name (required), repo_url (required), base_model, base_user_model_id, +9 more.
dataset_statusC
Check the status of a dataset import or processing operation.
Inputs: dataset_id (required).
delete_datasetC
Delete a dataset from the platform.
Inputs: dataset_id (required).
delete_modelB
Delete a trained model from cloud storage.
Inputs: model_id (required).
estimate_evaluationB
Get a cost estimate for an evaluation before running it.
Inputs: dataset_id (required), evaluator_ids (required), user_model_id, base_model, +1 more.
estimate_jobA
Get a cost estimate for a fine-tuning job before submitting it. Returns estimated cost, cost range, current balance, and whether balance is sufficient. Always estimate before creating a job.
Inputs: base_model, base_user_model_id, num_epochs, max_examples, +2 more.
evaluation_statusB
Get live status of an evaluation including progress and current metrics.
Inputs: evaluation_id (required).
export_catalog_modelA
Export a pre-built model or dataset from the Marketplace to your S3 bucket. Credits will be charged based on the export price upon successful completion.
Inputs: model_id (required), s3_bucket (required), s3_access_key_id (required), s3_secret_access_key (required), +2 more.
export_modelA
Export a trained model from Tuning Engines cloud storage to your S3 bucket.
Inputs: model_id (required), s3_bucket (required), s3_access_key_id (required), s3_secret_access_key (required), +3 more.
get_accountA
Get your Tuning Engines account details and settings.
Inputs: no named parameters.
get_balanceB
Check your Tuning Engines account balance and recent transactions.
Inputs: no named parameters.
get_catalog_modelA
Get detailed information about a specific pre-built model or dataset from the Marketplace including description, pricing, and export options.
Inputs: model_id (required).
get_inference_jwtA
Get a JWT token for authenticating with the Tuning Engines inference API. Use this to make direct API calls to the inference endpoint.
Inputs: no named parameters.
import_modelA
Import a model from S3 into Tuning Engines cloud storage so it can be used as a base for future fine-tuning jobs.
Inputs: name (required), source_s3_url (required), base_model (required), s3_access_key_id (required), +2 more.
inference_usageB
Get inference API usage statistics including request counts, token usage, and costs.
Inputs: start_date, end_date, model.
job_statusA
Get live status of a fine-tuning job including current status, GPU minutes used, estimated charges, remaining balance, and delivery progress. Use this to monitor a running job.
Inputs: job_id (required).
list_agentsA
List available agents configured for your organization. Agents are AI assistants with specific capabilities and tool access.
Inputs: no named parameters.
list_catalog_modelsA
List available pre-built models and datasets from the Tuning Engines Marketplace. These are platform-owned, ready-to-use assets that can be exported to your S3 bucket. Returns name, description, base model, size, export price, and category.
Inputs: category.
list_datasetsB
List datasets available for training and evaluation. Datasets can be uploaded from S3 and used for fine-tuning or model evaluation.
Inputs: limit.
list_evaluationsB
List model evaluations. Evaluations run your trained models against benchmark datasets using various evaluators to measure quality.
Inputs: status, limit.
list_evaluatorsA
List available evaluators for model evaluation. Evaluators measure different aspects of model quality like code execution, similarity, or LLM-based judgment.
Inputs: no named parameters.
list_inference_modelsA
List models available for inference through the Tuning Engines inference API. Includes both platform models and your deployed trained models.
Inputs: no named parameters.
list_jobsA
List fine-tuning training jobs on Tuning Engines. Returns recent jobs with status, base model, agent type, GPU usage, and cost. Use this to check on existing training runs or find a job ID.
Inputs: status, limit.
list_modelsB
List your trained and imported models on Tuning Engines.
Inputs: no named parameters.
list_supported_modelsA
List the supported base HuggingFace models available for fine-tuning on Tuning Engines. Optionally filter by agent to see only compatible models.
Inputs: agent.
model_statusB
Check the status of a model import or export operation.
Inputs: model_id (required).
retry_jobA
Retry a failed fine-tuning job from its last checkpoint. Creates a new job that resumes training where the failed one stopped, saving GPU time. Each retry is billed separately.
IMPORTANT: This tool fetches a cost estimate and includes it in the response. You MUST show the estimate to the user and get their explicit approval before considering the retry confirmed. The retry is submitted automatically (the server validates balance), but always present the cost to the user.
Inputs: job_id (required), github_token.
show_agentA
Get details of a specific agent including capabilities, tools, and configuration.
Inputs: agent_id (required).
show_datasetA
Get details of a specific dataset including status, source, and metadata.
Inputs: dataset_id (required).
show_evaluationB
Get full details of a specific evaluation including status, scores, metrics, and comparison data.
Inputs: evaluation_id (required).
show_jobA
Get full details of a specific fine-tuning job including status, base model, agent type, GPU minutes, cost, error messages, and whether it can be retried from checkpoint.
Inputs: job_id (required).
show_modelB
Get details of a specific trained model.
Inputs: model_id (required).
validate_s3A
Validate S3 credentials by testing read/write access to the specified bucket. Use before submitting a job with S3 export.
Inputs: s3_bucket (required), s3_access_key_id (required), s3_secret_access_key (required), s3_region (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 38 tools
Each tool targets a distinct resource and action (e.g., create_job vs. cancel_job, list_datasets vs. show_dataset). There is no overlap, and descriptions clearly differentiate related tools like estimate_job and create_job.
All tools follow a consistent verb_noun pattern in snake_case (e.g., list_models, export_model, cancel_evaluation). The naming is uniform and predictable, aiding agent selection.
38 tools is on the higher side but appropriate for a comprehensive fine-tuning platform covering jobs, evaluations, datasets, models, marketplace, inference, and account management. The scope justifies the count.
The tool surface covers the full lifecycle: job creation, estimation, cancellation, retry, and monitoring; dataset and model CRUD; evaluation workflows; account management; marketplace; and inference. No obvious gaps exist.
Maintenance
Related MCP Connectors
Your AI Agent's Infrastructure Layer. Connect Claude, Copilot, Codex, or ChatGPT to 200+ managed open source services. Start databases, pipelines, and applications through natural language.
Deterministic compliance and vertical knowledge bases for autonomous agents. Free 24hr trial.
Train, evaluate, red-team and deploy AI agents: prompt tuning, LLM-judged evals, katas.
Cloud or self-hosted knowledge for AI agents: hybrid search, reranking, GraphRAG, scoped MCP tools.
Related MCP Servers
- AlicenseAqualityDmaintenanceProvides tools for optimizing, fine-tuning, and deploying large language models with Unsloth, enabling 2x faster training with 80% less memory through model loading, fine-tuning, text generation, and model export capabilities.68Apache 2.0
- AlicenseNot gradedqualityDmaintenanceTransforms AI assistants into a full ML engineering environment for training and fine-tuning models across multiple backends (local GPU, Mistral, Together AI, OpenAI) and cloud providers (Lambda Labs, RunPod, SSH-accessible VPS), with dataset management, experiment tracking, cost estimation, and deployment to Ollama/Open WebUI.4PolyForm Noncommercial 1.0.0
- AlicenseBqualityDmaintenanceExposes vLLM capabilities to AI assistants, enabling chat completions, model management, and platform-aware container control with automatic detection of Docker/Podman and GPU availability across Linux, macOS, and Windows.128Apache 2.0
- FlicenseNot gradedqualityDmaintenanceProvision private AI model endpoints (Llama 3.1, Qwen 2.5, Mistral) on dedicated GPUs, billed per minute. OAuth 2.1 + DCR.-