Skip to content

AI Agent Overview

AI agents represent a fundamentally new class of non-human identity. Unlike traditional service accounts that execute deterministic code paths, AI agents make autonomous decisions, interact with unpredictable external inputs, and can incur unbounded costs if left ungoverned. VeraID provides purpose-built controls for managing the unique risks that AI agents introduce to your organization.

Why AI Agents Need Special Identity Management

Traditional NHI governance was designed for predictable, deterministic systems. AI agents break every assumption those systems were built on.

Autonomous Decision-Making

AI agents interpret prompts, select tools, and take actions without explicit human instruction for each step. A single prompt can trigger a chain of API calls, database queries, and external service interactions — all decided by the model at runtime. Without governance, there is no way to predict or constrain what an agent will do.

Unpredictable Costs

Every LLM call consumes tokens, and token consumption translates directly to spend. An agent caught in a reasoning loop, processing unexpectedly large inputs, or making recursive tool calls can exhaust budgets in minutes. Traditional rate limiting is insufficient because a single “request” to an agent can fan out into dozens of LLM calls internally.

Prompt Injection Risks

AI agents process untrusted input — user messages, retrieved documents, tool outputs — and any of these can contain adversarial instructions designed to override the agent’s intended behavior. A successful prompt injection can cause an agent to exfiltrate data, bypass access controls, or execute unauthorized actions, all while appearing to function normally.

Lack of Visibility

Most organizations have no centralized view of which AI agents are running, what models they use, what data they access, or how much they spend. Agents are often deployed by individual teams with ad-hoc credentials and no audit trail, creating blind spots that grow as adoption accelerates.


Agent Identity Model

VeraID models AI agents as first-class identities with type AI_AGENT. Every agent identity carries a standard set of NHI fields (name, status, tags, risk score) plus an agentConfig object that encodes agent-specific governance controls.

Agent Configuration Schema

{
"id": "idt_9c3a8b7e-4f21-4d6a-b8e1-a2c5d9f07e3b",
"name": "customer-support-agent",
"type": "AI_AGENT",
"status": "ACTIVE",
"agentConfig": {
"provider": "openai",
"modelIdentifier": "gpt-4o",
"capabilities": [
"chat-completion",
"function-calling",
"retrieval"
],
"dataAccess": {
"allowed": [
"customer-tickets",
"knowledge-base",
"product-catalog"
],
"denied": [
"financial-records",
"employee-pii",
"source-code"
]
},
"monitoring": {
"logAllRequests": true,
"logResponses": true,
"requireApproval": false
},
"tokenBudget": {
"daily": 50.00,
"monthly": 1000.00,
"perRequest": 2.00
}
}
}

Configuration Fields

FieldTypeDescription
providerstringLLM provider: openai, anthropic, azure_openai, or custom
modelIdentifierstringSpecific model used by this agent (e.g., gpt-4o, claude-sonnet-4)
capabilitiesstring[]Declared capabilities: chat-completion, function-calling, retrieval, code-execution, image-generation
dataAccess.allowedstring[]Data sources this agent is permitted to access
dataAccess.deniedstring[]Data sources explicitly denied, regardless of other policies
monitoring.logAllRequestsbooleanLog every prompt sent to the LLM
monitoring.logResponsesbooleanLog every response returned from the LLM
monitoring.requireApprovalbooleanRequire human approval before executing sensitive operations
tokenBudget.dailynumberMaximum spend per day in USD
tokenBudget.monthlynumberMaximum spend per month in USD
tokenBudget.perRequestnumberMaximum spend per individual request in USD

Supported Agent Frameworks

VeraID integrates with the major AI agent frameworks and LLM providers. The integration method depends on the framework’s architecture.

SDK Callback Integration

These frameworks support native callback hooks that VeraID intercepts for policy evaluation, budget enforcement, and audit logging.

FrameworkIntegration MethodKey Features
LangChainSDK callbacksIntercept chain execution, tool calls, and LLM invocations via LangChain callback handlers
LlamaIndexSDK callbacksMonitor query pipelines, retrieval steps, and response synthesis through event hooks
Semantic KernelSDK callbacksGovern function calls, planner execution, and connector usage via Semantic Kernel filters
import { VeraIDClient } from '@veraid/sdk';
import { VeraIDLangChainCallback } from '@veraid/sdk/langchain';
const client = new VeraIDClient({
apiKey: process.env.VERAID_API_KEY,
agentId: process.env.VERAID_AGENT_ID,
});
// Attach VeraID as a LangChain callback handler
const agent = new AgentExecutor({
agent: myAgent,
tools: myTools,
callbacks: [new VeraIDLangChainCallback(client)],
});

API Proxy + SDK Integration

These frameworks are governed through a combination of API-level proxying (for LLM calls) and SDK-level instrumentation (for tool and task orchestration).

FrameworkIntegration MethodKey Features
AutoGPTAPI proxy + SDKRoute LLM calls through VeraID gateway; SDK monitors task planning and execution
BabyAGIAPI proxy + SDKProxy model calls for budget and injection checks; SDK tracks task queue and results
CrewAIAPI proxy + SDKGateway intercepts all crew member LLM calls; SDK governs inter-agent communication

Credential Injection

For direct LLM API usage, VeraID manages credentials and injects them at runtime. No code changes are required beyond pointing to the VeraID credential endpoint.

ProviderIntegration MethodKey Features
OpenAICredential injectionVeraID vaults and rotates OpenAI API keys; SDK injects credentials per-request
AnthropicCredential injectionManaged Anthropic API keys with per-agent budget isolation
Azure OpenAICredential injectionAzure AD token management with VeraID policy enforcement

Workflow Platform Integration

Low-code and automation platforms connect via webhooks and secrets synchronization.

PlatformIntegration MethodKey Features
n8nWebhook + secrets syncVeraID syncs credentials to n8n credential store; webhooks trigger policy evaluation
ZapierWebhook + secrets syncManaged Zapier connection credentials with usage tracking and auto-rotation

Custom Agents

Any agent or LLM-powered application can integrate with VeraID through the REST API and SDK.

ApproachIntegration MethodKey Features
Custom agentREST API + SDKFull API access for budget checks, prompt scanning, credential retrieval, and audit logging
import { VeraIDClient } from '@veraid/sdk';
const client = new VeraIDClient({
apiKey: process.env.VERAID_API_KEY,
agentId: process.env.VERAID_AGENT_ID,
});
// Before each LLM call
await client.agents.checkBudget(estimatedCost);
await client.agents.guardPrompt(userInput);
// After each LLM call
await client.agents.recordSpend({
amount: actualCost,
model: 'gpt-4o',
operation: 'chat-completion',
});

What’s Next