langchain-enterprise-rbac

Featured

Implement role-based access control for LangChain applications with multi-tenant isolation, model access control, and usage quotas. Trigger: "langchain RBAC", "langchain permissions", "langchain access control", "langchain multi-tenant", "enterprise LLM auth".

AI & Automation 2,266 stars 315 forks Updated today MIT

Install

View on GitHub

Quality Score: 99/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# LangChain Enterprise RBAC ## Overview Role-based access control for multi-tenant LangChain applications: permission models, model access gating, tenant-scoped vector stores, usage quotas, and FastAPI middleware integration. ## Permission Model ```typescript // permissions.ts enum Permission { CHAIN_INVOKE = "chain:invoke", CHAIN_STREAM = "chain:stream", MODEL_GPT4O = "model:gpt-4o", MODEL_GPT4O_MINI = "model:gpt-4o-mini", MODEL_CLAUDE = "model:claude-sonnet", TOOLS_EXECUTE = "tools:execute", ADMIN_CONFIG = "admin:config", ADMIN_USERS = "admin:users", } interface Role { name: string; permissions: Permission[]; } const ROLES: Record<string, Role> = { viewer: { name: "viewer", permissions: [Permission.CHAIN_INVOKE, Permission.MODEL_GPT4O_MINI], }, user: { name: "user", permissions: [ Permission.CHAIN_INVOKE, Permission.CHAIN_STREAM, Permission.MODEL_GPT4O_MINI, Permission.TOOLS_EXECUTE, ], }, power_user: { name: "power_user", permissions: [ Permission.CHAIN_INVOKE, Permission.CHAIN_STREAM, Permission.MODEL_GPT4O_MINI, Permission.MODEL_GPT4O, Permission.MODEL_CLAUDE, Permission.TOOLS_EXECUTE, ], }, admin: { name: "admin", permissions: Object.values(Permission), }, }; ``` ## User and Tenant Models ```typescript interface Tenant { id: string; name: string; monthlyTokenLimit: number; tokensUsed: number; allowedModels: string[]; }...

Details

Author
jeremylongshore
Repository
jeremylongshore/claude-code-plugins-plus-skills
Created
7 months ago
Last Updated
today
Language
Python
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Featured

linear-enterprise-rbac

Implement enterprise role-based access control with Linear. Use when setting up team permissions, OAuth scopes, SAML SSO, SCIM provisioning, or audit logging. Trigger: "linear RBAC", "linear permissions", "linear SSO", "linear enterprise access", "linear role management", "linear SCIM".

2,266 Updated today
jeremylongshore
AI & Automation Featured

langfuse-enterprise-rbac

Configure Langfuse enterprise organization management and access control. Use when implementing team access controls, configuring organization settings, or setting up role-based permissions for Langfuse projects. Trigger with phrases like "langfuse RBAC", "langfuse teams", "langfuse organization", "langfuse access control", "langfuse permissions".

2,266 Updated today
jeremylongshore
AI & Automation Solid

access-control-rbac

Role-based access control (RBAC) with permissions and policies. Use for admin dashboards, enterprise access, multi-tenant apps, fine-grained authorization, or encountering permission hierarchies, role inheritance, policy conflicts.

160 Updated 2 weeks ago
secondsky
AI & Automation Featured

apollo-enterprise-rbac

Enterprise role-based access control for Apollo.io. Use when implementing team permissions, restricting data access, or setting up enterprise security controls. Trigger with phrases like "apollo rbac", "apollo permissions", "apollo roles", "apollo team access", "apollo enterprise security".

2,266 Updated today
jeremylongshore
AI & Automation Featured

flexport-enterprise-rbac

Configure role-based access control for Flexport integrations with scoped API keys, multi-tenant patterns, and organization-level permission management. Trigger: "flexport RBAC", "flexport permissions", "flexport multi-tenant", "flexport access control".

2,266 Updated today
jeremylongshore