sekia

A multi-agent event bus for automating workflows across GitHub and Gmail, built on embedded NATS with JetStream

brew install sekia-ai/tap/sekia
Event-driven workflows
Lua scripts react to events from GitHub and Gmail and send commands back to the agents
Zero config
Embedded NATS with JetStream, hot-reload workflows, run sekiad and go
Secure by default
HMAC-signed commands, SHA256 workflow manifests, KMS[...] encrypted config secrets
Background services
brew services, launchd/systemd named instances with sekiactl service, Docker Compose

Install

brew tap sekia-ai/tap

# Daemon + CLI (required) plus the agents you need
brew install sekia sekia-github sekia-google

# Run as background services (launchd)
brew services start sekia
brew services start sekia-github
brew services start sekia-google
go install github.com/sekia-ai/sekia/cmd/sekiad@latest
go install github.com/sekia-ai/sekia/cmd/sekiactl@latest
go install github.com/sekia-ai/sekia/cmd/sekia-github@latest
go install github.com/sekia-ai/sekia/cmd/sekia-google@latest
git clone https://github.com/sekia-ai/sekia.git
cd sekia
docker compose up
git clone https://github.com/sekia-ai/sekia.git
cd sekia
go build ./cmd/sekiad ./cmd/sekiactl ./cmd/sekia-github ./cmd/sekia-google

Quick start

1 Start the daemon
sekiad
2 Write a workflow
-- ~/.config/sekia/workflows/auto-label.lua

sekia.on("sekia.events.github", function(event)
    if event.type ~= "github.issue.opened" then return end

    local title = string.lower(event.payload.title or "")

    if string.find(title, "bug") then
        sekia.command("github-agent", "add_label", {
            owner  = event.payload.owner,
            repo   = event.payload.repo,
            number = event.payload.number,
            label  = "bug",
        })
    end
end)
3 Connect an agent
export GITHUB_TOKEN=ghp_...
sekia-github
4 Check status
sekiactl status
sekiactl agents

Lua API

FunctionDescription
sekia.on(pattern, fn)Register handler for NATS subject pattern
sekia.publish(subj, type, data)Emit an event
sekia.command(agent, cmd, data)Send command to an agent
sekia.log(level, msg)Log a message
sekia.nameThe workflow's name

Agents

GitHub
Webhooks and REST API polling for issues, PRs, pushes
GITHUB_TOKEN
Google
Gmail REST API with OAuth2: incoming mail events, send, reply, label, archive
GOOGLE_CLIENT_ID GOOGLE_CLIENT_SECRET