Documentation
Get IronLayer running in your environment in under 5 minutes.
Quick Start
The fastest way to get started is using Docker. Ensure you have Docker installed and running.
1. Clone & Configure
git clone https://github.com/somegg90-blip/ironlayer-gateway.git cd ironlayer-gateway # Create .env file echo "API_KEY=your_openrouter_key_here" > .env
2. Run the Container
docker-compose up -d
Your proxy is now running at http://localhost:8000.
Usage (Python)
Point your OpenAI SDK client to the proxy URL instead of the default API URL.
from openai import OpenAI
client = OpenAI(
base_url="http://localhost:8000/v1", # Point to IronLayer
api_key="dummy_key" # IronLayer manages the real key
)
response = client.chat.completions.create(
model="auto", # Let IronLayer decide the best model
messages=[{"role": "user", "content": "My email is test@test.com"}]
)
print(response.choices[0].message.content)Configuration
All security rules are defined in policy.yaml. You can add custom secrets or blocked domains here.
# policy.yaml
custom_patterns:
- name: "PROJECT_STARLIGHT"
regex: "ProjectStarlight"
score: 0.9
agent_security:
blocked_domains:
- "competitor.com"