login

login is a command for coding agents from danielsalles/connector-platform-plugin. It costs 12 tokens per session (675 once invoked), scanned A, original, MIT.

A command that saves a Connector Platform builder token and configures the project to use its MCP connection. MCP is a standard way for an agent to connect to external tools and services.

In plain words
What is it for?
Use it to authenticate a Connector Platform project with a builder token. It verifies the token and writes or updates the project’s local environment configuration.
Why use it?
It checks that the token is valid, belongs to a builder, and has the required project context before saving configuration. This prevents setup from proceeding with the wrong kind of token.

Command

Part of the connector-platform plugin — 1 skill, 4 commands, 1 MCP server shipped together

Install

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.

agentmods
npx agentmods add commands/danielsalles/connector-platform-plugin/login
Clone the repo
git clone --depth 1 https://github.com/danielsalles/connector-platform-plugin

Or install connector-platform, the plugin that ships this one along with the rest of its 1 skill, 4 commands, 1 MCP server.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for login

README.md
[![agentmods](https://agentmods.dev/badge/commands/danielsalles/connector-platform-plugin/login.svg)](https://agentmods.dev/commands/danielsalles/connector-platform-plugin/login)
Your own site
<a href="https://agentmods.dev/commands/danielsalles/connector-platform-plugin/login"><img src="https://agentmods.dev/badge/commands/danielsalles/connector-platform-plugin/login.svg" alt="Measured on agentmods" height="20"></a>
Per session 12 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 675 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What 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.

ModelPer sessionOnce invoked
Fable 5 $0.00012 $0.00675
Opus 5 $0.00006 $0.00338
Sonnet 5 $0.00002 $0.00135
Haiku 4.5 $0.00001 $0.00068

Measured 3d ago against content hash ed74d795a7b3, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

login scanned grade A with 1 finding 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 3d ago.

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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

Make a GET request to `https://connector-api.plataform-connect.workers.dev/v1/me` with header `Authorization: Bearer <token>`. Use the Bash tool with `curl -sS`.
commands/login.md · 77 lines

How it starts

The opening of the file, as written. The whole thing — 77 lines — stays where its author put it; the contents beside it link to each section on GitHub.

The user is running /connector login with a builder token (cpt_*) provided by the Connector Platform admin.

Step 1 — Validate the token format

The token must start with cpt_. If the user passed something else (or nothing), reply:

The token must start with cpt_. Get one from your platform admin (admin runs Create builder in the platform's /admin/builders page and shares the bootstrap token).

Stop here on format error.

Step 2 — Verify the token works and is a builder token

Make a GET request to https://connector-api.plataform-connect.workers.dev/v1/me with header Authorization: Bearer <token>. Use the Bash tool with curl -sS.

Parse the JSON response:

  • If status != 200 → tell the user the token is invalid or revoked. Stop.
  • If role != "builder" → tell the user this is not a builder token (it might be an end_user or admin token). Stop.
  • If builder_id is null → tell the user the token has no builder context. Stop.

Save builder_id from the response — you'll need it next.

Step 3 — Write .env.local at project root

If .env.local already exists, append these lines (or update if they already exist). Do NOT clobber existing keys.

CONNECTOR_API_KEY=<token>
CONNECTOR_BASE_URL=https://connector-api.plataform-connect.workers.dev
CONNECTOR_MCP_URL=https://connector-mcp.plataform-connect.workers.dev
CONNECTOR_BUILDER_ID=<builder_id from step 2>

Step 4 — Write .mcp.json at project root

Write the file with exactly this content (substitute <builder_id> and <token>):

{
  "mcpServers": {
    "connector-platform": {
      "url": "https://connector-mcp.plataform-connect.workers.dev/mcp/<builder_id>/self",
      "headers": {
        "Authorization": "Bearer <token>"
      }
    }
  }
}

If .mcp.json already exists with other servers, merge — preserve existing keys, add connector-platform to mcpServers.

Step 5 — Update .gitignore

Ensure .env.local is in .gitignore. Append the line if missing. Do not touch other entries.

Read the full file on GitHub · 77 lines

Changes

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.

  1. 3d ago First seen · 77 lines · 12 tokens per session scan A ed74d795a7b3

Subscribe to this mod's changes

login is a command published in the GitHub repository danielsalles/connector-platform-plugin (0 stars, last pushed 4mo ago), licensed MIT. It adds 12 tokens to every session and 675 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.