Skip to main content

Advanced Features

Beyond the core components, OpenHands SDK provides powerful advanced features for production use, including intelligent context management, workflow automation, and enterprise-grade security.

Feature Overview

Context Management

Intelligent context management to keep conversations efficient and focused.

Auto Context Condensation

Automatically compress conversation history to stay within token limits: Usage:
Learn more →

Context Files (repo.md, CLAUDE.md)

Inject repository-specific knowledge into your agent:
Example .openhands/microagents/repo.md:
Learn more →

Keyword-Triggered Microagents

Inject context on-demand when keywords are mentioned:
Learn more →

Workflow Features

Automate common workflow patterns.

Built-in TODO Lists

Agents can manage TODO lists for complex tasks: Usage:
Learn more →

Auto-Generated Conversation Titles

Conversations get meaningful titles automatically:

Stuck Detection

Automatically detect when agents are stuck in loops: Detected patterns:
  • Same action repeated multiple times
  • Cycling through small set of actions
  • No observable progress after many iterations
Learn more →

Security Features

Enterprise-grade security for safe agent execution.

LLM Security Analyzer

Two-tier security analysis: Example:
Learn more →

Custom Confirmation Policies

Control when user approval is required:
Learn more →

Secrets Management

Automatic masking of sensitive data:
Learn more →

Production Deployment

Built-in production server for enterprise deployment.

REST + WebSocket Server

Start server:
Client usage:
Learn more →

Container Sandboxing

Run agents in isolated containers:
Learn more →

Interactive Workspace Access

Debug agents in real-time: Features:
  • VNC Desktop: See what the agent sees
  • VSCode Web: Browse and edit files
  • SSH Access: Direct terminal access
Learn more →

Performance Optimization

Context Condensation Metrics

From our evaluation:
  • 60-70% token reduction on long conversations
  • No task completion degradation
  • 40% cost savings on large tasks

Token Tracking

Next Steps