Cerebras + Gork Mail
Gork Mail logo
✕
Cerebras logo

Give Cerebras its own inbox

Gork Mail is the best way to give Cerebras its own inbox. Send email, receive replies, and manage full conversation threads from a dedicated inbox each bot owns.

Install

One command

Add the Gork MCP server with the command or config below, then restart Cerebras. 13 email tools appear, each call scoped to the inbox you connect. The same MCP server serves CLI agents, editors, and the Gork API.

1Create a Gork API key on your dashboard and a Cerebras API key on cloud.cerebras.ai.
2Define the three Gork tools above in Cerebras function-calling format.
3Run the agent loop below: the model decides, your code executes against the Gork REST API.
4Ask it to provision an inbox — it calls gork_create_inbox and reports a real address.

Run directly in your terminal to install the MCP tool.

pip install cerebras-cloud-sdk requests
Try it

One prompt away

Use as the system message for your Cerebras email agent. Copy it, paste it into Cerebras — it calls the tools itself.

CerebrasCerebras
You are an email agent with a Gork Mail inbox. When asked to own an address, call gork_create_inbox first and report the address. Never invent message ids — only reply in-thread to messages returned by gork_read_emails. If a send fails with recipient_suppressed, stop and report it.

Paste into Cerebras — no code, no config

Why email

Why your Cerebras agent needs its own inbox

One address per bot

Not one connection shared across the fleet. The native Gmail plugin gives every bot on your account the same credential. Gork Mail gives each bot a real address it owns.

Real inbound

The Gmail plugin lets your bot read your inbox. Gork Mail lets people, or systems, email the bot directly, with full thread history and reply_to_message.

Scoped blast radius

One flagged send scopes to one bot's address, not your entire Gmail reputation.

Code

Working code

Complete Python loop: Cerebras reasons, Gork REST executes.

import json, os, requests
from cerebras.cloud.sdk import Cerebras
cerebras = Cerebras(api_key=os.environ["CEREBRAS_API_KEY"])
GORK = "https://api.gork.email/v1"
HEADERS = {"Authorization": f"Bearer {os.environ['GORK_API_KEY']}"}
def run_tool(name, args):
if name == "gork_create_inbox":
r = requests.post(f"{GORK}/inboxes", headers=HEADERS,
json={"username": args["username"]})
return r.json()["data"]
if name == "gork_send_email":
r = requests.post(f"{GORK}/messages/send", headers=HEADERS, json={
"inboxId": args["inbox_id"], "to": [args["to"]],
"subject": args["subject"], "text": args["text"]})
return r.json()["data"]
if name == "gork_read_emails":
r = requests.get(f"{GORK}/messages", headers=HEADERS,
params={"q": args["query"]})
return r.json()["data"]
raise ValueError(f"Unknown tool: {name}")
messages = [
{"role": "system", "content": "You are an email agent with Gork Mail tools."},
{"role": "user", "content": "Give the support agent an email address."},
]
while True:
resp = cerebras.chat.completions.create(
model="gpt-oss-120b", messages=messages, tools=EMAIL_TOOLS)
msg = resp.choices[0].message
if not msg.tool_calls:
print("Agent:", msg.content)
break
messages.append(msg.model_dump())
for call in msg.tool_calls:
output = run_tool(call.function.name, json.loads(call.function.arguments))
messages.append({"role": "tool", "tool_call_id": call.id,
"content": json.dumps(output)})
Templates

Templates

Live Cerebras bots, each running on its own Gork Mail inbox. Open one to add it to your account and email it.

Sales

Lead

Qualifies inbound demo email. Replies with times or a self-serve link.

Prompt Trigger
“Monitor incoming sales inquiries on partnerships@yourcompany.com. If an enterprise lead emails, evaluate company size and reply with demo calendar links.”
Gork MailCerebras
Gork Mail

Support

Desk

Tier-one support inbox. Answers from your FAQ, escalates the rest.

Prompt Trigger
“Check support@yourcompany.com for unread tickets. Draft answers using our knowledge base and tag human engineers on billing disputes.”
Gork MailCerebras
Gork Mail

Engineering

Crash Triage

Ingests CI/CD crash dumps and error emails, locates the failing code, and opens a pull request.

Prompt Trigger
“Read incoming error emails from Sentry on alerts@yourcompany.com, parse the stack trace, locate the bug in our codebase, and reply with the commit fix.”
Gork MailCerebras
Gork Mail

Operations

Approval Gate

Human-in-the-loop send gate. Intercepts OTP codes or confirms actions.

Prompt Trigger
“Listen on verify-bot@yourcompany.com for authentication emails. Extract the 6-digit confirmation code and print it to complete automated signup.”
Gork MailCerebras
Gork Mail

Productivity

Scheduler

Negotiates meeting times over email until everyone agrees.

Prompt Trigger
“Coordinate meeting availability with external clients on schedule@yourcompany.com. Propose 3 alternate time slots and confirm upon agreement.”
Gork MailCerebras
Gork Mail

Executive

Threadmate

CC it on a thread. Reads the history and replies from your brief.

Prompt Trigger
“When CCed on email threads, summarize recent correspondence and draft a concise executive response for my review.”
Gork MailCerebras
Gork Mail
FAQ

FAQ

Common questions about Gork Mail and Cerebras.

No — chat.cerebras.ai is a model playground with no tool integrations. Build the agent in code against the Cerebras inference API (recipe above) and give it Gork tools.
Get Started

Give your Cerebras agent its own inbox

Free tier included. Dedicated inboxes ready in seconds.

Create an inbox for your agent

Deploy dedicated inboxes for your AI agents in seconds across any model, harness, or pipeline.