dd-openai-onboarding
БесплатноЗапускает вложенные скриптыНе проверенConnects OpenAI to Datadog so the user can see organization-wide OpenAI API usage metrics and OpenAI costs in Cloud Cost Management (on by default). Guides…
от datadog-labs★ 188 звёзд на GitHubОб этом скилле
Datadog OpenAI Integration
Use scripts/setup.py relative to this file. It owns browser handoff, hidden
key entry in a separate terminal, the OpenAI key check, Pup OAuth validation,
duplicate prevention, one-shot registration, and secret redaction. Do not
reproduce its API reads or writes.
The integration (openai) ingests organization-wide usage as openai.*
metrics and, when cost data ingestion is on, OpenAI costs into Cloud Cost
Management (CCM). Both are configured on one Datadog account: the OpenAI key is
its secret, and ccm_enabled and llm_observability_enabled are its settings,
so the script creates the account and turns on CCM in the same request.
Out of scope: tracing an application's own OpenAI calls. That is LLM
Observability instrumentation (the dd-instrument-llmo skill), not this
integration.
Phase 0: Preflight
Datadog for Government is not supported. If pup auth status reports a
ddog-gov.com site, stop and tell the user to set up the integration from the
Datadog app instead. The script refuses Government sites too.
Pup. Installed and authenticated. The setup script performs every Datadog
request through pup api, which owns authentication selection, OAuth
refresh, site, and organization selection, and it validates Pup itself before
touching anything:
pup auth status
authenticated: true→ continue.pupis missing → ask before installing it:brew tap datadog-labs/pack && brew install datadog-labs/pack/pup(macOS or Linux with Homebrew),curl -fsSL https://raw.githubusercontent.com/DataDog/pup/main/install.sh | sh, ornpm install -g @datadog/pup(Windows or anywhere with npm); see https://github.com/DataDog/pup. Then runpup auth login.authenticated: false→ the setup script reportspup_not_authenticatedwith the exactpup auth logincommand. Ask before running it, and do not ask the user to create or export Datadog API or application keys.
Pup version. The setup script uses Pup v2 CLI flags (such as
--no-envelope); Pup 1.x fails with an opaque pup_request_failed. Check:
pup --version
A major version of 2 or later is required. If it is older, ask before
upgrading. When the environment allows it, upgrade with the official
installer or npm as above. Some workspaces block piping a remote script to a
shell (curl | sh), and /usr/local/bin may not be user-writable; there,
install from the release archive in a fresh empty directory instead (replace
2.4.3 and the platform suffix with the latest release):
VERSION=2.4.3
curl -fsSLO "https://github.com/DataDog/pup/releases/download/v${VERSION}/pup_${VERSION}_Linux_x86_64.tar.gz" &&
curl -fsSLO "https://github.com/DataDog/pup/releases/download/v${VERSION}/pup_${VERSION}_checksums.txt" &&
grep "pup_${VERSION}_Linux_x86_64.tar.gz$" "pup_${VERSION}_checksums.txt" | sha256sum -c - &&
tar -xzf "pup_${VERSION}_Linux_x86_64.tar.gz" &&
sudo install -m 0755 ./pup /usr/local/bin/pup &&
pup auth login
Python. The flow runs scripts/setup.py, so confirm python3 is on
PATH before starting:
command -v python3 || echo "MISSING python3"
Desktop session. Key entry needs a local graphical terminal: Terminal.app
on macOS; gnome-terminal, konsole, xterm or x-terminal-emulator with DISPLAY
or WAYLAND_DISPLAY set on Linux; a console on Windows or WSL; or a new tmux
window when the agent session runs inside tmux, which also works on headless
hosts. If none is available, such as over SSH without tmux or in a container,
stop before approval and ask the user to run this from a machine with a
desktop session or inside tmux.
OpenAI admin key. Only organization owners can create one, and the key is
shown only once by OpenAI. A project key (sk-proj-...) connects but
collects no usage or cost data, so the script refuses it. If the user is not an
OpenAI organization owner, stop before approval: ask them to have an owner
create the admin key and paste it into the prompt, or run the setup themselves.
Cost data. Appears in Cloud Cost Management only if the Datadog org uses CCM.
Confirm the logged-in Datadog org
Before gathering anything else, ask whether to set up the integration for the
Datadog org the user is currently logged in to. Read the org's name from the
same pup session and site this run uses with pup api /api/v2/current_user
(the name of the orgs entry under included; the site is the one pup auth status reported). Then ask once with the host's native selector:
Do you want to set up this integration for the Datadog org
on ?
- Yes → continue.
- No → stop. Have the user sign pup into the right org (see the pup step above), then ask again. Never continue on an org the user did not confirm.
Workflow
- [ ] Values gathered (name, cost data, LLM Observability, custom tags)
- [ ] User told about the admin key page and the separate terminal
-
Установить dd-openai-onboarding в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл dd-openai-onboarding?
Connects OpenAI to Datadog so the user can see organization-wide OpenAI API usage metrics and OpenAI costs in Cloud Cost Management (on by default). Guides creating the OpenAI admin key the integration needs (organization owners only), entered in a separate secure prompt where the agent never sees it, and verifies that usage data is actually arriving. Use when the user wants OpenAI API usage and cost data in Datadog, or asks to connect, configure, or repair the Datadog OpenAI integration. Not for tracing OpenAI calls from application code, which LLM Observability covers.
Как установить скилл dd-openai-onboarding?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл dd-openai-onboarding запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic