Skip to main content

Kiro integration

Export Kiro usage to Leanmote over OTLP, with the token kept in your own AWS account.

The Kiro integration brings your team's Kiro usage into Leanmote's AI tools: credits, messages and the mix of models, per developer, once a day. Kiro sends it to Leanmote over OpenTelemetry; Leanmote never connects to your Kiro or AWS account.


​

What Leanmote receives from Kiro


​

Kiro sends daily totals per user, once a day:


​

  • Credits consumed, including overage.

  • Number of messages and chat conversations.

  • Messages per model.

  • Who each total belongs to, and whether it came from the IDE or the CLI.


​

It does not send your prompts, Kiro's answers, your source code or any file Kiro opened, and nothing per session or per keystroke. It is the same daily report Kiro can drop as a CSV in your own S3 bucket, delivered over OpenTelemetry instead.


​

Connect Kiro


​

A Kiro administrator sets it up once for the whole account.


​

  1. In Leanmote, open Administration → Integrations, find Kiro under AI tools and click Connect. Leanmote shows a secret with exactly two keys: where to send the usage and the token to authenticate.

  2. In AWS Secrets Manager, in your own AWS account, create a secret with those two keys.

  3. Add the resource policy below to that secret, so Kiro can read it.

  4. In the Kiro console, set up the account-level OpenTelemetry export pointing at the secret.

  5. Pick HTTP/protobuf as the protocol and save. Leanmote only accepts HTTP/protobuf: choosing gRPC fails without an error on Kiro's side.


​

Kiro delivers the first batch at 02:00 UTC, so activity shows up in Leanmote the day after you connect it. If you regenerate the token in Leanmote, update the secret with the new value, or Kiro stops reporting.


​

Connection details


​

Detail

Value

Connection type

OpenTelemetry (OTLP over HTTP/protobuf): Kiro pushes usage to Leanmote with a token Leanmote generates, which you keep in a secret in your own AWS account.

Who connects in Kiro

A Kiro administrator, because the export is configured once for the whole account, together with someone who can create secrets and edit their resource policy in your AWS account.

Who can connect in Leanmote

Owner or Manager.

Write access

None. Leanmote gets no access to your Kiro or AWS account: Kiro sends the data to Leanmote.


​

Permissions required


​

The secret's resource policy lets the Kiro service read it, and nothing else:


​

{"Sid": "KiroReadExportCredentials", "Effect": "Allow", "Principal": {"Service": "q.amazonaws.com"}, "Action": ["secretsmanager:GetSecretValue"], "Resource": "*"}


​

  • secretsmanager:GetSecretValue for the service q.amazonaws.com — Kiro reads the secret to know where to send the usage and how to authenticate.

  • kms:Decrypt and kms:DescribeKey for the same service — only if the secret uses a customer-managed KMS key.


​

Related articles


​

  • AI Return

  • Integrations overview

Did this answer your question?