You can send Shiba a task by email. Write to one of your installation’s mailboxes, such as [email protected], put the task in the subject or body, and include the GitHub repository it’s about. Shiba replies with an approval number. Nothing runs until an approver accepts the request in the dashboard Approvals list or in Slack.
Send a task
- Write a new email to a Shiba mailbox from an address your administrator allowed.
- Describe the task in the subject, the body, or both. Shiba joins them, and drops quoted history and signatures below your message.
- Include a link like
https://github.com/owner/repo. You can leave it out if your administrator mapped the mailbox to a repository.
Shiba replies in the same email thread with the approval number and, when the dashboard hostname is configured, a link to Shiba. The dashboard shows the full input. If something is missing, such as the repository, the reply explains what to add and nothing is queued. Shiba uses plain text for intake and doesn’t pass attachments to the run. Keep the subject and body to 4,000 characters.
Approval never happens by email
Email is easy to forge, so Shiba never treats an email as a decision. Replying “approve”, “yes”, or “LGTM” doesn’t approve anything. Shiba answers that email can’t decide and leaves the request pending. Any other reply in the thread counts as a new request that needs its own approval.
An approver decides in one of two places:
- Dashboard: the request appears in Approvals with the full task. Only people on
DASHBOARD_APPROVERScan decide it. - Slack: when
SLACK_APPROVALS_CHANNELis set, an approval card is posted there. Only people onSLACK_APPROVERScan press its buttons.
After approval, the selected employee runs the task. Progress and results are in the dashboard. If approved repository work produces changes, Shiba asks for a separate publication approval before pushing those changes and opening a pull request. That publication decision never happens by email; it stays in the dashboard or Slack. Rejecting it leaves the completed work unpublished.
Per-employee addresses
An employee can have one explicit inbound address, such as [email protected], on a domain configured with EMPLOYEE_EMAIL_DOMAIN. The address is off until an organization manager enables it through the employee email route. Enabling atomically claims the lowercase address in the EmailDirectory routing index for that employee, registers the mailbox, and records routing state in the employee configuration. Disabling or deleting the route releases the directory claim first; unknown, disabled, archived, mismatched, and never-provisioned addresses all receive the same negative mailbox response.
Cloudflare Email Routing is still operator-managed DNS/routing configuration. Shiba does not create the zone, DNS records, catch-all rule, or destination address. Set the domain’s catch-all to the email Worker, set EMPLOYEE_EMAIL_DOMAIN to that exact domain, then send a real message to prove delivery.
Team-workspace employees are not yet eligible for this lane until trusted team intake lands. Per-employee task intake uses the employee’s explicit allowedSenders list, never a bare existence check. The employee’s defaultRepoUrl is the fallback repository when the message names none. The same DMARC, exact sender, automated-mail, duplicate-delivery, 4,000-character, and no-approval-by-email rules apply. Mail that fails these checks is ordinary inbox mail or is rejected before storage according to the mailbox rules; it is never a task and never receives backscatter.
Set up email intake
This part is for your installation administrator. Email intake is off until you configure it.
- Set up inbound mail first: route each address to the Worker with Cloudflare Email Routing and register it as a mailbox, as described under Agent mailbox in Launch. Replies go out through the
SEND_EMAILbinding; without it, requests are still queued but senders get no reply. Registering the mailbox and setting intake variables are only local Shiba configuration: they do not create DNS, routing, or a Cloudflare Email Routing rule, and/api/setup/statuscannot verify that external routing. A real test message is the proof that inbound delivery is live. - Map each task mailbox to a saved employee in this installation with
EMAIL_TASK_EMPLOYEES, for example{"[email protected]": "engineering"}. Use the employee ID or slug. Other registered mailboxes still only receive ordinary mail. - Set
EMAIL_TASK_SENDERSto a comma-separated list of exact sender addresses, such as[email protected],[email protected]. Leaving it empty turns task intake off. - Optionally set
EMAIL_TASK_REPOSto a JSON map from mailbox address to repository, for example{"[email protected]": "https://github.com/owner/repo"}. - Make sure
DASHBOARD_APPROVERS(andSLACK_APPROVERSif you use the Slack card) names the people who should decide. Sender allowlisting lets people request work, not approve it.
Mailbox keys in EMAIL_TASK_EMPLOYEES and EMAIL_TASK_REPOS must be lowercase exact addresses; uppercase keys never match because inbound recipients are normalized before lookup. GET /api/setup/status includes setup-doctor findings for malformed JSON, invalid sender entries, unusable mailbox keys, and invalid repository URLs. The findings use counts and setting names only, never the configured addresses or repository values.
That status check is local configuration validation only. It cannot prove that the domain’s DNS, Cloudflare Email Routing rule, or registered mailbox is correct. Send a real message from an allowed address to prove end-to-end delivery.
Which mail is accepted
Shiba queues a request only when all of these are true:
- The mail was delivered to a registered mailbox and stored in its inbox.
- The first
Authentication-Resultsheader, the one Cloudflare’s receiving server (mx.cloudflare.net) adds, saysdmarc=passand at least one of SPF or DKIM passes. Later results are ignored. DMARC authenticates the domain; it does not identify an individual. - The single From address matches the SMTP envelope sender and is on
EMAIL_TASK_SENDERS. Forwarded mail or mail that uses a different bounce address may only go to the inbox. - The mail isn’t automated: auto-replies, mailing-list mail, and bulk mail are skipped so Shiba never answers a machine.
Mail that fails any of these checks stays in the inbox as ordinary mail and gets no reply, so Shiba can’t be used to send mail to people who never wrote to it. A redelivered copy of the same message never queues a second request.
Test it
Send a small request from an allowed address. Check that the reply arrives in the same thread, that the request shows in Approvals with the exact task, and that replying “approve” leaves it pending. Then reject it in the dashboard and confirm no run starts.