Skip to main content

Connect an agent

Availability

Open core · self-host + all Splyntra Cloud plans

The Connect wizard (reachable from Agents → New, or the /connect shortcut) is the fastest way to instrument an agent. It collects a little about your stack, mints an ingest key, and generates connect code you can paste in.

The wizard steps

StepWhat you set
1. BasicsThe agent name — becomes the service_name / serviceName on its spans.
2. FrameworksThe frameworks you use (LangGraph, CrewAI, OpenAI Agents, …) → the instrument list.
3. LLM ProvidersThe providers you call (OpenAI, Anthropic, Ollama, or an OpenAI-compatible one) → adds provider adapters and any base_url notes.
4. Data & ToolsTools, MCP servers, and retrieval sources the agent touches.
5. SecurityThe inline guard mode — a radio of Off / Monitor / Block (default Monitor).
6. AlertsA checkbox (default on) to create a HIGH/CRITICAL alert rule for this agent.
7. ReviewConfirms your choices, mints the ingest key, and shows the connect code.

Security: guard modes

ModeBehavior
OffNo inline guard; the pipeline still redacts and scores risk.
MonitorRuns the pre-flight guard and logs its verdict without altering the call.
BlockRaises SplyntraBlocked before the provider call on an injection or secret hit.

See Guardrails for the full guard behavior.

The ingest key — shown once

On Review, the wizard mints an ingest key and displays it once. Copy it now — it won't be shown again. Keys are stored server-side only as SHA-256 hashes, so a lost key can't be recovered; mint a new one instead. Pass it through an environment variable rather than committing it.

The generated connect code

Review shows a Connect code block with a Python / TypeScript toggle and a Copy button. The snippet sets service_name / serviceName to the agent name, injects the key, applies your chosen instrument list and guard mode, and includes base_url notes for any OpenAI-compatible provider.

import os
from splyntra import Splyntra

Splyntra(
api_key=os.environ["SPLYNTRA_API_KEY"],
project="support-agent",
service_name="support-agent", # = the agent name from Basics
endpoint="https://ingest.splyntra.com",
instrument=("langgraph", "openai"), # from Frameworks + LLM Providers
guard="monitor", # from Security
)

Run your agent once, then open Traces to see the first run land, or the Agents screen to see the agent register.

Next steps