Installation
KoreShield can be used in two ways: as a standalone proxy (recommended for production) or as an SDK integrated directly into your application code.The standalone proxy sits between your application and LLM providers. This is the most secure deployment method as it operates independently of your application logic.
Installation Methods
Choose Your Deployment Method
Select between Proxy Mode (recommended for production) or SDK Mode (for direct integration)
Install Dependencies
Install Docker for proxy deployment or install the SDK for your programming language
1. Proxy Installation (Docker)
The standalone proxy sits between your application and LLM providers, providing the most secure deployment method.For production deployments, make sure to configure environment variables for your LLM provider API keys.
System Requirements (Proxy)
Docker
Engine 20.10 or higher
Memory
512MB minimum recommended
Network
Outbound HTTPS access to LLM providers
2. SDK Installation
The SDKs allow you to integrate KoreShield features (sanitization, scanning) directly into your codebase or interact with a deployed KoreShield Proxy.- Python
- JavaScript/TypeScript
Quick Start with Docker Compose
For a complete setup with environment variables and configuration:docker-compose.yml
Environment Configuration
Configure KoreShield using environment variables:| Variable | Description | Required |
|---|---|---|
DEEPSEEK_API_KEY | Your DeepSeek API key | Optional |
OPENAI_API_KEY | Your OpenAI API key | Optional |
ANTHROPIC_API_KEY | Your Anthropic API key | Optional |
KORESHIELD_API_KEY | API key to protect KoreShield proxy | Recommended |
SECURITY_SENSITIVITY | Security level: low, medium, or high | Optional (default: medium) |
DEFAULT_ACTION | Default action: block, warn, or allow | Optional (default: block) |
Deployment Options
Docker
Deploy with Docker containers
Kubernetes
Deploy on Kubernetes clusters
AWS
Deploy on Amazon Web Services
Railway
One-click Railway deployment
Next Steps
Quick Start
Secure your first LLM integration with a complete working example
Configuration
Configure security policies and customize KoreShield behavior