Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add commands/nylas/cli/agent-getting-startedgit clone --depth 1 https://github.com/nylas/cliWhat it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00000 | $0.02794 |
| Opus 5 | $0.00000 | $0.01397 |
| Sonnet 5 | $0.00000 | $0.00559 |
| Haiku 4.5 | $0.00000 | $0.00279 |
Grade A, and why
agent-getting-started scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 334 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Getting Started with Agent Accounts
A hands-on walkthrough for setting up and operating Nylas agent accounts from the CLI — accounts, workspaces, policies, rules, and lists, with examples for every step.
What Agent Accounts Are
Agent accounts are Nylas-managed email identities (provider nylas).
Unlike OAuth grants, they don't connect to Gmail or Outlook — Nylas itself
hosts the mailbox (e.g. [email protected]). They're built for
AI agents and automation: a real inbox your agent can send from, receive to,
and automate, without a human's mailbox behind it.
How the resources fit together
Application
├── Policies coarse settings bundles (limits, options, spam)
├── Rules mail-flow automation (trigger → conditions → actions)
│ └── in_list ──────► Lists (typed value sets: domain / tld / address)
└── Workspaces the attachment point that makes it all take effect
├── policy_id one policy per workspace
├── rule_ids[] many rules per workspace
└── Agent accounts mail through these is governed by the workspace
A rule or policy does nothing until a workspace references it, and an agent account is governed by whatever its workspace references.
API reference: https://developer.nylas.com/docs/v3/agent-accounts/
Prerequisites
nylas init # one-time CLI setup (API key, region)
nylas doctor # verify configuration is healthy
You need an API key with admin access. Agent account emails use your
application's agent domain (e.g. yourapp.nylas.email).
Step 1 — Create an Agent Account
nylas agent account create [email protected]
Example output:
✓ Agent account created successfully!
[email protected]
ID: 11111111-1111-1111-1111-111111111111
Workspace ID: aaaaaaaa-1111-1111-1111-111111111111
Status: active
Notes:
- the
nylasconnector is created automatically on first use - the API auto-creates a default workspace and policy for the account
- add
--name 'Support Bot'to set a display name on the account (1–256 characters) - add
--app-password 'ValidAgentPass123ABC!'to also enable IMAP/SMTP mail-client access (see Step 7) --jsonprints the raw payload for scripting:
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- yesterday First seen · 334 lines · 0 tokens per session scan A 545cfbbd0400
agent-getting-started is a command published in the GitHub repository nylas/cli (68 stars, last pushed 13d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 2,794 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other commands, from other repositories
create-pr
Create a pull request following the official template.
/release
Release a new version — updates CHANGELOG, pyproject.toml, creates git tag, and pushes.
numbers-to-excel
Convert a Numbers document to Excel.
briefing
Get a daily briefing of today's calendar events, reminders, and optional inbox context.
symfony-api-errors
Design API Platform 4.3 error handling — RFC 7807.
execute-plan
Execute an implementation plan methodically with TDD and continuous validation.