Agent setup

Give your agent one link.

Send the Markdown guide to your agent. It checks the live registration state, authenticates through the published protocol, and reads the account's effective capabilities before it acts.

Open the Markdown guide
https://neotask.ai/agent-onboarding/SKILL.md

The copied text contains no account data or credentials.

One entry point

The guide handles the routing.

  1. 01

    Send the link

    Your agent reads the current setup file instead of relying on stale instructions.

  2. 02

    Register and authenticate

    If registration is live, the guide points to the current auth.md flow and token resource.

  3. 03

    Check effective access

    The agent reads scopes, availability, plan gates, approvals, and required human actions before each operation.

Built for safe discovery

REST, MCP, and human handoffs share one contract.

  • Bearer tokens stay in request headers.
  • The capability manifest decides what is usable now.
  • Claim, pairing, approval, billing, and integration steps return typed human actions.
  • Internal HMAC authentication is never exposed to public agents.

The guide

What your agent reads.

The live copy of this guide, https://neotask.ai/agent-onboarding/SKILL.md, reports whether agent registration is available right now.

If someone sent you this file, they are asking you to set up Neotask for them now: work through "Start here" until you are signed in and have read your capabilities, then tell them what you can do. Ask them only for a decision or information a step needs. Re-read this file at the start of a new setup because launch state and available operations can change.

Start here

  1. Read https://neotask.ai/auth.md. A 200 response means registration is available and auth.md is the current registration protocol. Any other response means registration is not available yet: do not submit registration material or credentials, and read the API catalog at https://neotask.ai/.well-known/api-catalog and https://neotask.ai/docs/llms.txt instead.
  2. Sign in one way and keep using it, so you create only one registration. If you already hold a Neotask registration, use it instead of registering again. The CLI cannot adopt a registration you made by following auth.md: if you switch to the CLI before doing any work there, revoke the earlier one first with DELETE https://neotask.ai/api/agent/v1/registration and an Idempotency-Key header.
    • With the Neotask CLI, when you can run software on the person's computer and they asked for it (the setup prompt copied from https://neotask.ai asks for it): install it from the API catalog entry described under "Decide what you can do", then run neotask account login --method anonymous --audience rest --json, neotask api profile --json and neotask api capabilities --json. The CLI registers, stores and renews the credentials, and runs the claim.
    • Without the CLI: follow the auth.md registration instructions exactly; do not guess or reuse cached registration endpoints. Exchange the identity assertion for an access token with the form field resource=https://neotask.ai/api/agent; step 4 of auth.md sends it. A token requested without that resource has a different audience, and the API rejects it with 401 invalid_credential. Send the token only in the Authorization: Bearer <token> header to https://neotask.ai/api/agent/v1/*, then call GET https://neotask.ai/api/agent/v1/me and GET https://neotask.ai/api/agent/v1/capabilities.
  3. Tell the person what you can do for them now, and offer the claim (below) when they want something that needs it.

Decide what you can do

Treat GET https://neotask.ai/api/agent/v1/capabilities as the authority for this account. For each operation, check scopeGranted, availability, reason, and idempotencyRequired before acting. A documented endpoint is not permission to call it.

  • Use direct REST only for operations currently granted and available in the capability response.
  • Use remote MCP at https://neotask.ai/mcp only when its protected-resource metadata and the capability response both report it available. A person can also connect you there with their own sign-in instead of a registration; https://neotask.ai/docs/mcp.md has the steps for Claude, ChatGPT, Codex, Cursor and VS Code and lists every tool.
  • The official Neotask CLI is published when the API catalog at https://neotask.ai/.well-known/api-catalog has an entry anchored at https://neotask.ai/cli. That entry links the signed release metadata (https://neotask.ai/cli/distribution.json: version, source revision, release signing key and per-platform SHA-256 digests), the website installers and the @neotask/cli npm package. Install only from those links, once the person you work for has asked for or approved the installation; the setup prompt copied from https://neotask.ai asks for it. Prefer npm install -g @neotask/cli: the package has no install scripts, and its first run downloads the signed CLI and verifies it. The shell installer embeds its signed trust root as base64 and adds ~/.neotask/bin to shell profiles, which some automated safety checks flag. Without that entry, or when you cannot run software on their computer, use direct REST or remote MCP. https://neotask.ai/docs/cli.md explains installation, sign-in, the runner and every command family.
  • Chat turns and runs execute on a runner. The CLI provides one: after signing in, run neotask runner enroll --idempotency-key <key> --json and follow its nextAction; once enrollment and any local approval are done, run neotask runner install to install the managed service, then neotask runner health --json and neotask runner doctor --json to confirm the runner is online. An enrolled runner without the installed service runs nothing. The execution section of the capability response reports the runner state. Without a runner you can manage agents, tasks and settings over REST or MCP, but you cannot run work.
  • Find and install plugins and skills through Neotask Construct: https://neotask.ai/docs/construct.md covers search and install from the CLI and the Agent API.
  • If Neotask returns a claim, pairing, approval, integration, checkout, or desktop handoff, give the typed human-action URL to the user and wait for the resulting status change.
  • Free and paid access are determined by the effective capability response. Never infer access from marketing copy or from the existence of an endpoint.

Claim the registration for full access

An anonymous registration starts unclaimed: the capability response reports principal.authorityPhase as pre_claim and capabilities.accountClaim as claim_required. Until a person claims it, companies, automations, scheduled jobs, integrations, Neotask Mail, approval decisions, boards and paid plans report claim_required.

  • Offer the claim yourself. The person you work for does not know it exists. When they ask for something that reports claim_required, or want full access, tell them that a one-time claim links you to their Neotask account: they sign in once and read you a code.
  • Ask for the email address of their Neotask account. Start the claim with step 3 of https://neotask.ai/auth.md using that address, or with neotask account claim start --json from the CLI, and give them only the returned link.
  • When they read you the code shown on that page, complete the claim (CLI: pipe the code to neotask account claim status --json --stdin), store the claimed identity in place of the anonymous one, request a new access token, and read the capability response again.
  • If they already have a Neotask account, requests then return identity_conflict with reason claim_move_confirmation_required and a link in error.action.url. Give that link only to the person who claimed you. You join their account after they sign in and confirm; then retry.
  • Never sign in, confirm, or read the code on their behalf.

What a claimed agent can do

  • Once claimed, you can use every Agent API operation your scopes grant, over REST or MCP alike. The capability response lists each one and whether it is available now.
  • An operation that spends money, publishes, or sends outside Neotask waits for the person's approval: give them the approval request Neotask returns and wait for its decision.
  • Deleting, security settings, your own rules, approval decisions, and granting new access stay with the person. Neotask answers such an operation with its state and the next step; pass that to the person instead of looking for another way.

Safety rules

  • Never put access tokens, identity assertions, claim secrets, API keys, or integration credentials in URLs, chat messages, Markdown, logs, or tool output.
  • Never create or sign Neotask internal HMAC headers. Public agents authenticate with the issued bearer token; service-to-service HMAC remains internal.
  • Never approve a human-only action, open a checkout, connect an integration, or install software without the required human decision.
  • Use an idempotency key whenever the operation manifest requires one. Do not retry a non-idempotent action blindly.
  • Keep every account, Tenant, and handoff binding exactly as returned. Never merge, retarget, or substitute identities.

Canonical references

Back to Neotask