Next-generation model security gateway
See what agents do before cost and risk compound
LineMod is a security gateway with agent behavior observability—guardrails at the edge, harness diagnostics across runs, and policy routing when you need it.
OpenAI-compatible · Agent run audit trail · Edge guardrails & policy routing
Secure every agent request at the gateway
Scan prompts, control tool access, and record each decision before requests reach a model.
Explore Security →- 1Inbound prompt
… send the card number …
- 2Policy matched
standard_policy v4
- 3Tool access denied
Sensitive data cannot leave the gateway.
- 0model tokens
- 1blocked tool
- Indexedaudit_01HX7K
Monitor every agent run
Track cost, latency, risk, tool calls, and policy decisions across multi-step agent runs.
Explore Observability →Sample trace
| Time | Event | Evidence | Status |
|---|---|---|---|
| 00:00 | Gateway received | req_8f3k2m9x1p | 14 ms |
| 00:01 | Policy checked | team_default_balanced v3 | pass |
| 00:02 | Route selected | Claude Sonnet | 124 ms |
| 00:03 | Response indexed | trace complete | 1.17s |
- 4run events
- 1policy
- 1route decision
Route requests by policy
Set routing rules once, then update cost, quality, fallback, and tracing policies without changing application code.
Explore Routing →Quality scores are examples.
| Model | Quality | Latency | Cost |
|---|---|---|---|
| Claude Sonnet | 92 | 1.17s | $0.0182 |
| GPT-4o mini | 86 | 0.74s | $0.0061 |
| DeepSeek V3 | 84 | 1.42s | $0.0048 |
- 1Request
POST /v1/chat/completions
- 2Policy
team_default_balanced v3
- 3Candidates
quality target inside budget
- 4Selected
Claude Sonnet
- 5Trace
req_8f3k2m9x1p
- 3models compared
- Matchedbudget
- Indexedtrace
Compare agents and find wasted steps
See cost and risk by app or account, then review cache hits, tool overhead, and idle steps before costs rise.
Waste, health, and the cost split are examples.
| Agent | Runs | Spend | Waste | Health |
|---|---|---|---|---|
| openclaw | 412 | $48.20 | 34% | Watch |
| opencode | 186 | $21.40 | 11% | Healthy |
| hermes-agent | 128 | $16.80 | 27% | Watch |
| n8n | 93 | $12.05 | 41% | Action |
Trim the schema and cache repeated planning calls.
Change the endpoint, keep the same workflow
Apps keep the same API shape while teams control routing, guardrails, and tracing in LineMod.
// existing SDK shape stays
const client = new OpenAI({
baseURL: "https://api.linemod.ai/v1",
apiKey: process.env.LINEMOD_API_KEY,
};
await client.chat.completions.create({
model: "auto:balanced",
messages,
});- 1 line changedBase URL
- no workflow rewritePolicy alias
- trace indexedTrace ID
Security-first gateway
Put guardrails and agent observability between apps and models
Keep the OpenAI-compatible API. Block risky agent behavior, trace every run, and route by policy when needed.