Skip to content
Back to skills

Writing Managed-Agent Provider Integrations

ASecurity

Use this checklist when adding a new managed-agent runtime provider.

  • 1,265 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added June 14, 2026
ai-agentsdatabase

Security analysis

A100/100

Pro scans all 4 files and shows the line behind each finding

Scanned June 14, 2026

npx -y skills add LiteLLM-Labs/litellm-agent-control-plane --skill skills --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Writing Managed-Agent Provider Integrations?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Writing Managed-Agent Provider Integrations
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/litellm-labs-writing-managed-agent-provider-integrations/badge)](https://www.skillsdirectory.com/skills/litellm-labs-writing-managed-agent-provider-integrations)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
# Writing Managed-Agent Provider Integrations

Use this checklist when adding a new managed-agent runtime provider.

## Files

- Add SDK protocol mapping under `src/sdk/agents/`.
- Add or update the gateway provider adapter under `src/managed_agents/providers/`.
- Add runtime credentials and runtime ids under `src/managed_agents/providers/base.rs` and `src/http/agent_runtimes.rs`.
- Add contract tests in `tests/managed_agents_sdk.rs`.
- Add gateway tests in `tests/managed_agents_support/flows.rs` when HTTP routes are involved.

## SDK Contract

- Keep the public surface Anthropic-shaped:
  `beta().agents().create`, `beta().environments().create`,
  `beta().sessions().create`, `beta().sessions().events().send`, and
  `beta().sessions().events().stream`.
- Prefix LAP-only fields with `lap_`.
- Use `lap_provider_options` only for gateway-owned provider-specific fields
  that cannot be represented by the Anthropic-shaped contract.
- Do not add database, vault, or idempotency logic to the SDK.
- Use `ManagedSessionRef` when gateway code needs to register DB-loaded local
  session ids with provider ids.

## Provider Mapping

- Translate request bodies in provider-specific helpers.
- Keep provider auth isolated to SDK request construction.
- Normalize provider streams before exposing public SDK events.
- Do not leak provider-specific event names from `events().stream`.
- Store provider session/run ids in gateway DB rows, not in SDK state alone.

## Tests

- Mock provider create/send/stream endpoints.
- Assert exact translated request bodies and auth headers.
- Assert normalized event payloads, not only event type names.
- Cover DB-loaded gateway sessions if the provider is exposed through HTTP.
- Add ignored live tests only when they require real provider credentials, and
  keep real keys out of source and logs.

Files in this skill

  • babysit-pr.md4.5 KB
  • create-harness.md16.2 KB
  • lite-schedule.md858 B
  • skill.md1.8 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.