AegisGate

Category: Testing & Security | Uploader: ax128ax128 | Downloads: 0 | Version: v1.0(Latest)

> **What is this document?** This is an agent-executable skill document for AegisGate — an open-source LLM security gateway. It walks through installation, startup, token registration, upstream configuration, and client integration on a fresh machine.

Changelog: Source: GitHub https://github.com/ax128/AegisGate

Directory Structure

Current level: tree/main/

  • 📁 .github/
    • 📁 workflows/
      • 📄 ci.yml 1.7 KB
  • 📁 aegisgate/
    • 📁 adapters/
      • 📁 openai_compat/
        • 📄 __init__.py 15 B
        • 📄 compat_bridge.py 56.0 KB
        • 📄 mapper.py 25.4 KB
        • 📄 offload.py 3.2 KB
        • 📄 payload_compat.py 5.3 KB
        • 📄 pipeline_runtime.py 11.1 KB
        • 📄 router.py 304.2 KB
        • 📄 sanitize.py 20.6 KB
        • 📄 stream_utils.py 13.6 KB
        • 📄 upstream.py 11.8 KB
      • 📁 relay_compat/
        • 📄 __init__.py 15 B
        • 📄 mapper.py 567 B
        • 📄 router.py 3.3 KB
      • 📁 v2_proxy/
        • 📄 __init__.py 38 B
        • 📄 router.py 46.0 KB
      • 📄 __init__.py 15 B
    • 📁 config/
      • 📄 __init__.py 15 B
      • 📄 feature_flags.py 2.2 KB
      • 📄 redact_values.py 4.1 KB
      • 📄 security_level.py 2.2 KB
      • 📄 security_rules.py 32.1 KB
      • 📄 settings.py 8.1 KB
    • 📁 core/
      • 📄 __init__.py 15 B
      • 📄 audit.py 2.7 KB
      • 📄 background_worker.py 1.8 KB
      • 📄 confirmation.py 3.2 KB
      • 📄 confirmation_cache_task.py 1.8 KB
      • 📄 confirmation_flow.py 4.9 KB
      • 📄 context.py 1.2 KB
      • 📄 dangerous_response_log.py 9.9 KB
      • 📄 errors.py 286 B
      • 📄 gateway.py 54.3 KB
      • 📄 gateway_auth.py 6.5 KB
      • 📄 gateway_keys.py 4.8 KB
      • 📄 gateway_network.py 3.5 KB
      • 📄 gateway_ui_config.py 17.6 KB
      • 📄 gateway_ui_routes.py 31.1 KB
      • 📄 gw_tokens.py 13.0 KB
      • 📄 hot_reload.py 12.6 KB
      • 📄 models.py 3.0 KB
      • 📄 pipeline.py 5.3 KB
      • 📄 registry.py 997 B
      • 📄 security_boundary.py 3.9 KB
      • 📄 semantic.py 17.5 KB
      • 📄 stats.py 12.7 KB
      • 📄 tfidf_model.py 4.0 KB
    • 📁 filters/
      • 📄 __init__.py 15 B
      • 📄 anomaly_detector.py 12.3 KB
      • 📄 base.py 680 B
      • 📄 exact_value_redaction.py 1.6 KB
      • 📄 injection_detector.py 27.1 KB
      • 📄 output_sanitizer.py 137 B
      • 📄 post_restore_guard.py 6.6 KB
      • 📄 privilege_guard.py 5.4 KB
      • 📄 rag_poison_guard.py 11.2 KB
      • 📄 redaction.py 9.8 KB
      • 📄 request_sanitizer.py 10.5 KB
      • 📄 restoration.py 6.5 KB
      • 📄 sanitizer.py 14.8 KB
      • 📄 system_prompt_guard.py 2.2 KB
      • 📄 tool_call_guard.py 11.7 KB
      • 📄 untrusted_content_guard.py 4.7 KB
    • 📁 models/
      • 📁 tfidf/
        • 📄 classifier.joblib 62.0 KB
        • 📄 vectorizer.joblib 103.7 KB
    • 📁 observability/
      • 📄 __init__.py 903 B
      • 📄 logging.py 2.4 KB
      • 📄 metrics.py 4.8 KB
      • 📄 tracing.py 4.9 KB
    • 📁 policies/
      • 📁 rules/
        • 📄 default.yaml 349 B
        • 📄 permissive.yaml 202 B
        • 📄 security_filters.yaml 39.0 KB
        • 📄 strict.yaml 801 B
      • 📄 __init__.py 15 B
      • 📄 policy_engine.py 6.0 KB
    • 📁 storage/
      • 📄 __init__.py 780 B
      • 📄 _helpers.py 1.8 KB
      • 📄 crypto.py 4.0 KB
      • 📄 kv.py 3.0 KB
      • 📄 offload.py 1.5 KB
      • 📄 postgres_store.py 20.3 KB
      • 📄 redis_store.py 15.9 KB
      • 📄 sqlite_store.py 16.8 KB
    • 📁 tests/
      • 📄 conftest.py 1.6 KB
      • 📄 test_hot_reload_unit.py 6.4 KB
      • 📄 test_openai_request_mapping.py 6.9 KB
      • 📄 test_passthrough_filter_mode.py 36.8 KB
      • 📄 test_request_redaction_routes.py 29.4 KB
      • 📄 test_response_sanitization_routes.py 26.1 KB
      • 📄 test_sanitize_helpers.py 10.7 KB
      • 📄 test_streaming_router.py 79.0 KB
    • 📁 util/
      • 📄 __init__.py 15 B
      • 📄 base64_detect.py 957 B
      • 📄 debug_excerpt.py 3.3 KB
      • 📄 ip_safety.py 4.4 KB
      • 📄 logger.py 5.2 KB
      • 📄 masking.py 872 B
      • 📄 redaction_whitelist.py 2.7 KB
      • 📄 risk_scoring.py 1.3 KB
    • 📄 __init__.py 74 B
    • 📄 init_config.py 9.0 KB
  • 📁 config/
    • 📄 .env.example 6.1 KB
    • 📄 gw_tokens.json.example 1.3 KB
    • 📄 model_map.json 459 B
    • 📄 README.md 6.4 KB
    • 📄 security_filters.yaml 39.0 KB
  • 📁 logs/
    • 📄 .gitkeep 0 B
  • 📁 scripts/
    • 📄 caddy-entrypoint.sh 806 B
    • 📄 local_launcher.py 15.8 KB
    • 📄 redeploy.sh 1.3 KB
    • 📄 train_tfidf.py 12.5 KB
  • 📁 www/
    • 📁 assets/
      • 📄 app.css 31.8 KB
      • 📄 app.js 48.7 KB
      • 📄 login.js 1.8 KB
    • 📄 index.html 40.7 KB
    • 📄 login.html 4.8 KB
  • 📄 .dockerignore 192 B
  • 📄 .gitignore 1.3 KB
  • 📄 aegisgate-local.py 121 B
  • 📄 AGENTS.md 2.5 KB
  • 📄 AICLIENT2API-QUICKSTART.md 1.1 KB
  • 📄 Caddyfile.example 4.0 KB
  • 📄 CHANGELOG.md 21.8 KB
  • 📄 CLIPROXY-QUICKSTART.md 1.0 KB
  • 📄 docker-compose.yml 2.1 KB
  • 📄 Dockerfile 1.1 KB
  • 📄 LICENSE 1.1 KB
  • 📄 OTHER_TERMINAL_CLIENTS_USAGE.md 4.9 KB
  • 📄 pyproject.toml 3.1 KB
  • 📄 README.md 23.0 KB
  • 📄 README_zh.md 47.7 KB
  • 📄 SKILL.md 7.7 KB
  • 📄 SUB2API-QUICKSTART.md 1.0 KB
  • 📄 WEBUI-QUICKSTART.md 2.7 KB

SKILL.md

Login to download/like/favorite ❤ 33 | ★ 0
Comments 0

Please login before commenting.

Loading comments...