New:Microsoft Teams Notifications Are Now Available in Socket.Learn more
Get Started

@chronary/agent-init

Package Overview
Dependencies
Maintainers
2
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@chronary/agent-init

One-liner bootstrap for AI agents: sign up, verify OTP, create a smoke calendar. `npx @chronary/agent-init`.

latest
Source
npmnpm
Version
0.1.3
Version published
Weekly downloads
2
-85.71%
Maintainers
2
Weekly downloads
 
Created
Source

@chronary/agent-init

One-liner bootstrap for AI agents on Chronary.

npx @chronary/agent-init@latest

In ~5 seconds the script does this:

  • POST /v1/agent/sign-up — provisions a new org + restricted API key
  • Reads the OTP from CHRONARY_OTP env, --otp flag, or stdin (TTY only)
  • POST /v1/agent/verify — upgrades the key to the full Free-tier plan
  • POST /v1/calendars — creates a smoke calendar to prove write access works

The last line of stdout is the new API key, so it composes:

export CHRONARY_API_KEY="$(npx -y @chronary/agent-init@latest --email you@example.com --otp 123456)"

Non-interactive flow (CI / Claude Code / Cursor)

CHRONARY_EMAIL=you@example.com \
CHRONARY_OTP=123456 \
  npx @chronary/agent-init@latest

Never blocks waiting for a TTY prompt that won't come — if stdin.isTTY is false and CHRONARY_OTP is unset, the process exits 2 with a clear message.

Flags

FlagEnvDefaultPurpose
--emailCHRONARY_EMAIL(required)Email to register
--otpCHRONARY_OTPstdin prompt6-digit OTP (verify step)
--apiCHRONARY_APIhttps://api.chronary.aiAPI base URL
--agent-nameCHRONARY_AGENT_NAMEBootstrap AgentDisplay name
--tos-versionCHRONARY_TOS_VERSION(fetched live)Override ToS version

Shell fallback (no Node)

If npx isn't available, the equivalent shell script is:

curl -sSfL https://chronary.ai/agent-init.sh | CHRONARY_EMAIL=you@example.com sh

The shell version is intentionally a 1:1 mirror of this package — same env vars, same exit codes. Use whichever your environment makes easiest.

Why a separate package?

@chronary/sdk is for application code — it has methods like client.calendars.create(...) you build on. @chronary/agent-init is a one-shot CLI: it provisions credentials and exits. Bundling the two would balloon the npx-resolve cost for cold agents that just need a key.

Differences from chronary.ai/install.sh

ArtifactWhat it installs
chronary.ai/install.shGo-based chronary CLI binary (developer tool)
npx @chronary/agent-initAgent identity (API key + smoke calendar)
chronary.ai/skills.shIDE skill packs for Claude Code / Cursor / etc.

They're complementary. A cold agent typically wants agent-init + skills.sh.

License

Apache-2.0.

Keywords

chronary

FAQs

Package last updated on 30 Jun 2026

Related posts