context-login

context-login is a command for Claude Code from aws/agent-toolkit-for-aws. It costs 18 tokens per session (187 once invoked), scanned A, original, Apache-2.0.

A command for signing an agent in to AWS Context, the service that stores an organisation's connected data and document relationships. It checks the connection with a read-only search when the required tools are available.

In plain words
What is it for?
Use it to start an AWS Context session or confirm that an existing sign-in works.
Why use it?
It avoids asking users for credentials or running login commands on their behalf. It gives the user the exact sign-in action and verifies the result afterward.

Command for Claude Code

Written for Claude Code: ${CLAUDE_PLUGIN_ROOT} variable.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the aws-context plugin — 1 skill, 2 commands, 2 hooks shipped together

Good fit Use it to start an AWS Context session or confirm that an existing sign-in works.

Compare 6 commands from other repositories ↓
About the project

Agent Toolkit for AWS is a collection of AWS-supported MCP servers, skills, plugins, commands, and hooks that help AI coding agents build, deploy, and manage applications on AWS. It is used by developers working with AWS services through agents such as Claude Code, Codex, Cursor, and Kiro. The catalogue entries are the toolkit's own agent extensions for AWS development and operations.

aws/agent-toolkit-for-aws · 3,609 stars · on GitHub

Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add aws/agent-toolkit-for-aws
Claude Code
/plugin install aws-context

Made for: Claude Code.

Or install aws-context, the plugin that ships this one along with the rest of its 1 skill, 2 commands, 2 hooks.

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 context-login

README.md
[![agentmods](https://agentmods.dev/badge/commands/aws/agent-toolkit-for-aws/context-login/github.svg)](https://agentmods.dev/commands/aws/agent-toolkit-for-aws/context-login)
Your own site
<a href="https://agentmods.dev/commands/aws/agent-toolkit-for-aws/context-login"><img src="https://agentmods.dev/badge/commands/aws/agent-toolkit-for-aws/context-login/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for context-login

Your own site · 80×15
<a href="https://agentmods.dev/commands/aws/agent-toolkit-for-aws/context-login"><img src="https://agentmods.dev/badge/commands/aws/agent-toolkit-for-aws/context-login.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 18 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 187 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00018 $0.00187
Opus 5.5 $0.00007 $0.00075
Sonnet 5.5 $0.00004 $0.00037
Haiku 4.5 $0.00002 $0.00019

Measured 5d ago against content hash dd6dfd37253a, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

context-login 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 5d 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.

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.

plugins/aws-context/commands/context-login.md · 16 lines

What it actually says

The user wants to sign in to AWS Context. Read ${CLAUDE_PLUGIN_ROOT}/skills/aws-context/references/connecting.md (the connecting.md reference of this plugin's aws-context skill) and follow it.

  1. If the AWS Context tools are loaded, make one read-only call (a search against the user's graph) to check the connection. If it works, tell the user they are signed in and stop.
  2. Otherwise pick the mode from connecting.md and tell the user exactly what to run or click to sign in. The user runs it. Do not run login commands yourself and do not ask for tokens or keys.
  3. When the user says they are done, retry the read-only call and report the result.
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. 5d ago First seen · 16 lines · 18 tokens per session scan A dd6dfd37253a

Subscribe to this mod's changes

context-login is a command published in the GitHub repository aws/agent-toolkit-for-aws (3,609 stars, last pushed today), licensed Apache-2.0. It adds 18 tokens to every session and 187 once invoked, about $0.0001 per session on Opus 5.5. 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-11-25.

Related

context-login compared with commands from other repositories

context-login next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
context-loginaws/agent-toolkit-for-awsCommand3.6ktodayApache-2.0A18Claude Code
checklistgithub/spec-kitCommand153k3d agoMITA13Claude Code
clarifygithub/spec-kitCommand153k3d agoMITA27Claude Code
analyzegithub/spec-kitCommand153k3d agoMITA26Claude Code
specifygithub/spec-kitCommand153k3d agoMITA13Claude Code
convergegithub/spec-kitCommand153k3d agoMITA35Claude Code
implementgithub/spec-kitCommand153k3d agoMITA14Claude Code