Developers

Ask a person a question from your code, your terminal or your agent, and get a sealed answer back that only your service can open.

The courier API at https://yeaply.com/api/v1 is live. The SDK packages are not published yet, so every npm, pip and npx command below is marked coming soon. The phone app is coming soon to the App Store and Google Play.

JavaScript

InstallComing soon: package not published yet
npm install @yeaply/sdk

Yeaply.connect pairs on the first run (it shows a pairing code to type in the app) and reuses the saved keys after that. ask waits for the answer.

deploy.mjs
import { Yeaply } from "@yeaply/sdk";

const y = await Yeaply.connect({ name: "Deploy bot" });

const answer = await y.ask({
  title: "Deploy v2.3 to production?",
  body: "12 commits since v2.2.",
  facts: { Branch: "main" },
  options: ["Deploy", { id: "hold", label: "Hold", style: "danger" }],
});

if (answer.optionId === "deploy") {
  // deploy
}

To keep working while the question waits, use y.send(...); it returns a handle whose h.answer() waits for the answer and whose h.withdraw() takes the question back. y.onAnswer(callback) runs your callback for each answer as it comes in.

send, answer, withdraw
// Send now, collect the answer later
const h = await y.send({ title: "Rotate the API keys tonight?", options: ["Rotate", "Skip"] });

const answer = await h.answer();   // wait for the answer
// ...or, if the question no longer matters:
await h.withdraw();

// Or handle answers as they arrive
y.onAnswer((answer) => {
  console.log(answer.optionId);
});

Python

InstallComing soon: package not published yet
pip install yeaply
deploy.py
import yeaply

y = yeaply.connect("Deploy bot")
answer = y.ask("Deploy v2.3?", options=["Deploy", "Hold"], timeout="1h")
print(answer.label)

With asyncio, use await yeaply.aio.connect(...):

asyncio
import asyncio
import yeaply

async def main():
    y = await yeaply.aio.connect("Deploy bot")
    answer = await y.ask("Deploy v2.3?", options=["Deploy", "Hold"], timeout="1h")
    print(answer.label)

asyncio.run(main())

Command line

Pair once, then ask from any script. The exit code says what was answered, so && runs the next command only on the first option.

TerminalComing soon: package not published yet
npx yeaply pair --name "My laptop"
npx yeaply ask "Deploy to production?" --options yes,no --timeout 1h && ./deploy.sh
Exit codeMeaning
0The first option was chosen (yes, in the example).
1Any other option was chosen.
2Nobody answered in time.
3An error.

Agents (MCP)

@yeaply/mcp gives an agent an ask_human tool. The first tool call gives a pairing code; type it in the Yeaply app, compare the fingerprint and tap Connect.

Claude CodeComing soon: package not published yet
claude mcp add yeaply -e YEAPLY_NAME="Claude Code" -- npx -y @yeaply/mcp
Claude Desktop: claude_desktop_config.jsonComing soon: package not published yet
{
  "mcpServers": {
    "yeaply": {
      "command": "npx",
      "args": ["-y", "@yeaply/mcp"],
      "env": { "YEAPLY_NAME": "Claude Desktop" }
    }
  }
}

Where the keys live

Each service makes its own signing and encryption keys on first run. They are kept in ~/.config/yeaply/<service-name>.json (file mode 0600, readable only by you), or, on servers, in the YEAPLY_KEYS environment variable.

The protocol in brief

Full protocol (draft)

Developers