What is AgentSecrets?
The Zero-Knowledge Difference
How AgentSecrets Works
Installation
Quick Start
Migrating from .env Files
Migrating from Vault / AWS
Migrating from dotenv-vault
Production Checklist
Credential Exposure
What Zero-Knowledge Means
The Proxy Model
The Three-Layer Model
Environments
Agent Identity
Storage Modes
The No get() Principle
Secret-Level Policies
Cloud Overview & Architecture
The Dual-Engine Model
Cloud Resolver Data Plane
Workload & Agent Tokens
Egress Allowlists & Audit Streams
Cloud REST API Reference
Account (init / login)
Server & Self-Hosting (server)
Docs
Shell Autocompletion
Keychain Auth
Secrets
Environments
Credential Proxy
env Injection
Workspaces & Teams
Projects
Agent Identity
Audit & Governance
Integrations Overview
Claude Desktop
Cursor
OpenClaw
HTTP Proxy (Any)
LangChain (Soon)
CrewAI (Soon)
CI/CD Pipeline
SDK Overview
Python SDK
Python API Reference
Python SDK Manual Testing
JavaScript SDK (Soon)
Ecosystem Overview
Zero-Knowledge MCP Server
Server Overview
5-Layer Architecture
Self-Hosting Guide
Authentication & Keys
Workspaces & Teams
Projects & Scope
Environments
Secrets & Sync Protocol
Agent Identity Resolution
Telemetry & Metrics Engine
Audit Log Sync
API Endpoint Reference
Security Overview
Anti-Impersonation & Process Verification
Encryption Model
Zero-Knowledge Sync
Proxy Security Layers
Threat Model
OWASP Top 10 Mitigation
Security FAQ
Third-Party Audit
Reporting Vulnerabilities
Guides Overview
Building on the SDK
Stripe Integration
OpenAI Integration
Multi-Agent Setup
Onboarding Team
CI/CD Pipeline
Publishing ZK MCP
Rotating Credentials
Auditing Team Activity
Dev to Production
Kubernetes Deployment
Monorepo Setup
Production Proxy Hardening
vs .env Files
vs HashiCorp Vault
vs AWS Secrets Manager
vs dotenv-vault
vs Infisical
When Not to Use
Proxy Not Starting
Proxy Not Resolving
Domain Blocked
Sync Conflicts
MCP Not Connecting
Session Token Errors
Proxy Session Authorization
Keychain Storage & Backends
SSRF & Destination Rules
Installation Issues
Error Codes Reference
Frequently Asked Questions
v3.1.x
v3.0.0
v2.1.0
v2.0.0
v1.4.0
v1.3.x
v1.2.0
v1.1.x
v1.0.x
TroubleshootingProxy Not Starting

Troubleshooting: Proxy Not Starting

The AgentSecrets HTTP Proxy is the core engine for injecting credentials into your AI agent's outbound requests. If the proxy fails to start when running agentsecrets proxy start, follow this guide to resolve the issue.


1Port Conflicts (Address Already in Use)

By default, the AgentSecrets proxy binds to localhost:8765. If another application is already using this port, the proxy will fail to start and throw an EADDRINUSE or bind: address already in use error.

Solution: Start the proxy on a different port using the --port flag:

agentsecrets proxy start --port 9000

Note: If you change the port, ensure your AI agents or tools are configured to route traffic to http://localhost:9000/proxy.


2Invalid or Desynchronized Proxy Session Token

The local proxy daemon validates caller identity using a pre-shared session token stored in the OS Keychain (X-AS-Session-Token). If the token becomes desynchronized or rejected:

Solution: Rotate the local proxy session token:

agentsecrets proxy rotate-session

This generates a new cryptographically secure token, notifies the running daemon, and updates your secure OS Keychain without requiring a full account logout.

If your cloud authentication session is expired, re-authenticate your CLI session:

agentsecrets login

3Keychain Access & Permissions

The proxy resolves credentials directly from your native OS Keychain via the keychain-auth security broker. On headless Linux servers or WSL environments, keychain access might require unlocking or configuring D-Bus/secret-service.

Solution: Check keychain and proxy status:

agentsecrets status keychain-auth status --json

If the keychain is locked, follow your OS-specific instructions to unlock your login keyring or verify that keychain-auth is authorized:

sudo keychain-auth authorize $(which agentsecrets) AgentSecrets

4Checking Proxy Logs

If the proxy starts but immediately crashes, inspect the background audit logs for fatal errors:

agentsecrets proxy logs --last 10

Look for explicit error messages during the BOOT phase.

The proxy strictly binds to127.0.0.1 (localhost) for security. It will purposefully reject bindings to 0.0.0.0, as exposing the proxy to the local network is a severe security risk.

Was this helpful?
Thanks for your feedback!
Your feedback helps us improve the platform.