Meta Purple Llama: in-house team vs implementation partner vs managed service

Keep Meta Purple Llama in-house when your team already runs Python services and can own the guardrails after launch. Hire an implementation partner for a scoped build with a documented handover. Choose a managed service only when you want someone else operating the runtime day to day.

On this page

Which Purple Llama staffing model fits: in-house, implementation partner or managed service

Choose in-house if you already have Python and security engineers who can own Purple Llama components for their full life, choose an implementation partner if you can run them but need outside help to build, harden and document them before handover, and consider a managed service only if the provider's hosting and data terms pass your security and compliance review. A team deciding who builds, runs and evidences Llama Guard 4, Prompt Guard 2, LlamaFirewall and CodeShield is really deciding who answers for each component after launch, including model updates, guardrail configuration and the records an auditor will ask to see.

The choice turns on four things. Start with skills: LlamaFirewall installs with pip install llamafirewall and needs Python 3.10 or later, so check whether your team can maintain that stack. Next, the launch deadline, since an in-house build depends on hiring you may not have yet, while a fixed-scope engagement sets deliverables and timelines in writing before work starts. Then decide who owns compliance evidence, because Llama Guard 4 and Prompt Guard 2 ship under the Llama 4 Community License Agreement and your auditors will ask for configurations, logs and test results. Finally, decide whether a third-party API key is acceptable, because the AlignmentCheck scanner that audits agent reasoning requires a Together API key.

Cost follows who does the work and what recurs afterward. In-house, you pay staff time for build, testing and upkeep, and any third-party service you adopt adds its own charges. A partner bills for scoped work, and DeployOpen's engagements are fixed-scope with deliverables and timelines agreed in writing before work starts, with ongoing support, upgrades and continuous testing available as retainers. A managed service bills for running the system, so ask what it covers and what it does not. Prices depend on scope, so ask each option for a quote that separates one-time build work from recurring operation, and for handover terms covering the runbook, configuration files, test results and who retests after each LlamaFirewall or model release. Ask any managed provider how you would exit and take your configuration and logs with you, because switching later can cost more than the first quote suggests.

When to hire an implementation partner for Purple Llama instead of staffing it alone

This table matches five staffing situations for Meta Purple Llama to the model that usually fits each one: in-house, implementation partner, or managed service. Read each row by its condition, because the Why column names the change that would flip the answer. Where two or more conditions apply at once, a hybrid of partner build and in-house run is worth comparing with the other options.

SituationModel that fitsWhy
No one on the team has Python 3.10 or later and LLM integration experienceImplementation partner, then in-house ownershipThe partner builds the integration and hands over runbooks. Changes if a developer already ships LLM code on Python 3.10 or later.
A security team needs a single accountable owner and written evidenceImplementation partner under a fixed-scope written agreementOne named owner and written deliverables give assessors a clear trail. Changes if the security team can hire a dedicated owner with evidence skills.
A platform team already runs services and wants to own the guardrailsIn-house teamExisting run processes cover patching, monitoring and on-call for guardrail services. Changes if Purple Llama components need skills the platform team lacks.
The organization wants operations outsourcedManaged serviceMonitoring, upgrades and tuning move to the provider. Changes if residency rules require your own infrastructure, so confirm where it runs.
A regulated organization needs a documented handover before go-liveImplementation partner with a written handover scopeRunbooks, configuration records and test evidence are written before go-live. Changes if internal teams already document to the standard your assessor expects.

What each model takes on and leaves with your organization

The in-house team owns every decision from design to daily operation. That covers choosing which Purple Llama components to use, such as Llama Guard 4 for hazard classification, Prompt Guard 2 for injection and jailbreak labels, CodeShield for generated code, or LlamaFirewall to combine the scanners. Your engineers wire them into the application, deploy the models in your own infrastructure, set the thresholds, and carry the on-call work when a classifier blocks legitimate traffic. Legal and compliance also own the license review. Purple Llama's evals and CodeShield are MIT licensed, but Llama Guard 4 and Prompt Guard 2 ship under the Llama 4 Community License Agreement, so confirm which terms cover each artifact you deploy. When the project ends, the configuration, tuning history, test cases and the reasons behind each rule all stay with you. Key-person loss is the main risk in the first year, so record those decisions as you make them.

An implementation partner carries the build for a defined scope and then hands it back. In a scoped engagement, the partner handles architecture, deployment into your cloud account, data center or air-gapped network, integration with your SSO, logging and application code, and testing against your own attack cases. The handover should list the configuration files, deployment code, runbooks for restarts, upgrades and threshold changes, test results with the inputs that produced each finding, and walkthroughs for the staff who will run the system. Ask for that list in the written scope before work starts. Also ask who owns the deployment code and the test corpus, because that decides whether another team can take the work over. Your staff still own production operation, data-handling answers and the blocking policy once the engagement closes.

A managed service keeps the platform running after go-live, but it does not take over the questions that define your risk. The provider operates the deployment, applies updates and watches the guards, while you keep two decisions. The first is data handling: which prompts and responses leave your boundary and where they go. The second is the blocking policy: which categories or scores stop a request and which are only logged. Check this early. LlamaFirewall's AlignmentCheck scanner requires a Together API key, so it sends data to a third-party service, and your reviewers must approve that before the build. After the engagement ends, confirm in writing whether you receive the configuration, the rule and threshold history, the logs and a copy of the deployment if you move in-house. Also confirm the notice period, how data is returned or deleted, and whether you may keep running the same model versions under the Llama licenses elsewhere. Without those terms, leaving the service means rebuilding it.

Who carries design, build, hardening, upgrades, monitoring, backups and support

Your own engineers own every stage, from choosing which Purple Llama components to run to answering the assessor's questions about them. This model suits teams that already operate Python services in production, have an AI platform group, and can staff on-call coverage for a security control. Every artifact below needs a named owner and a backup owner.

  • Dependency pin: Pin llamafirewall to an exact version in your lockfile. The llamafirewall package on PyPI lists 1.0.3 as the latest version, so record the version you tested and the Python 3.10 or later runtime you built against.
  • Model files: Download the Llama Guard and Prompt Guard model files from the PurpleLlama repository, store their checksums, and keep the license acceptance records under a named legal owner.
  • AlignmentCheck key: Your organization holds the Together API key that AlignmentCheck requires, so rotation, spend limits and access reviews fall to your secrets team.
  • Build and hardening: Your engineers write the chat or agent integration, configure the scanners, and run the hardening review for the host and the model endpoint.
  • Upgrades and monitoring: Your team tracks PurpleLlama and LlamaFirewall releases, reruns evaluations after each change, and owns the alerting for false positives that block legitimate traffic.

Before you commit, confirm you can name an owner and a backup for each artifact above, because on-call coverage for a guardrail sits with your team.

Skills and roles the Purple Llama work needs

Purple Llama is a set of separate components, so the work splits across roles that different teams usually hold. Each card names one role, what it covers, and whether an implementation partner or managed service can take it over. Decide the in-house, partner, or managed split role by role before you compare quotes.

Python and application integration

LlamaFirewall installs with pip install llamafirewall and needs Python 3.10 or later. Someone has to wire its scanners into your chat model, agent loop or tool calls, and the project ships demos for OpenAI Agents and LangChain that show the pattern. Keep this with the team that maintains the application, since they ship the updates that can break the integration. A partner can build the first version, but confirm who maintains it after handover.

LlamaFirewall README

Model hosting and inference

Llama Guard 4 is a 12-billion-parameter classifier, while Prompt Guard 2 ships in 22M and 86M sizes, so the hardware plan splits by model. Prompt Guard 2 reads only a 512-token context window, so long inputs need a plan for splitting them. This role covers serving capacity for your peak traffic, latency budgets and model upgrades. A managed service can host the models for you, but confirm where prompts and responses are processed before you send them. Ask any partner to state the hardware assumptions behind its quote.

Llama Guard 4 model card

Application security and red teaming

CodeShield statically analyzes LLM-generated code in 8 languages using Semgrep and regex rules, so every scan produces findings that someone has to triage. Triage means deciding which findings block a release, which are false positives, and which need a code fix. The same owner usually runs red team exercises against your prompts, tools and agent permissions. Security testing can be contracted as a fixed-scope engagement, but the in-house owner still accepts residual risk and tracks fixes. Check that a partner's retest covers the same release and the same findings.

Licensing and policy ownership

LlamaFirewall is MIT licensed, while Llama Guard 4 and Prompt Guard 2 ship under the Llama 4 Community License Agreement. Those are different terms, so someone must read both and confirm that your intended use and any distribution fit them. Legal or compliance should own that decision, and a partner can prepare the summary but should not stand in for your sign-off. Record the license of each component in your software inventory and recheck it when you upgrade a model.

Llama Guard 4 license

Secrets and third-party dependencies

AlignmentCheck, the scanner that audits agent reasoning, requires a Together API key. That key is a credential for an outside service, with its own account, billing and data handling, and your application must store and rotate it. Ownership covers who holds the key, where it lives in your secrets manager, and who responds when it is revoked. A partner can configure the secret store, but your security team should approve the external dependency and its data flow before production use.

What drives cost and effort under each model, and how to keep it down

This table compares the seven drivers that move cost and effort in a Meta Purple Llama project under an in-house team, an implementation partner and a managed service. Read each row for who does the work under each model, then check that the quote itemizes the same items. The main takeaway: integration count, evidence scope and upgrade commitments often shape effort as much as the choice of model size.

DriverUnder each modelHow to keep it down
Number of application and agent integration pointsIn-house: your engineers wire each path. Partner: priced per integration in the written scope. Managed: check whether standard hooks are included.Count integration paths before quoting. Group similar chat or agent flows so one scanner setup covers them.
Model size: Llama Guard 4 or Prompt Guard 2 sizesIn-house: your team benchmarks and runs the hardware. Partner: benchmarking is a scoped deliverable. Managed: confirm sizes and hardware the service uses.Benchmark the 22M size on your traffic first. Its model card says it cuts latency and compute cost by 75%.
Multilingual prompts and the 86M Prompt Guard 2 versionIn-house: your team tests non-English prompts. Partner: language test cases are a scoped item. Managed: ask whether non-English traffic is covered.The 86M Prompt Guard 2 version is the multilingual one, so test it on your languages before choosing the smaller 22M size.
AlignmentCheck checks on agent reasoningIn-house: your team builds it and holds the Together API key. Partner: scope says if it is included. Managed: confirm inclusion and key holder.Decide early whether agents need reasoning audits. AlignmentCheck depends on a Together API key, so name its owner in the quote.
Custom regex or custom scanners in LlamaFirewallIn-house: your engineers write, test and maintain each rule. Partner: custom scanners are scoped and handed over. Managed: confirm whether custom rules are included.Start with the built-in scanners and add regex only for gaps you have tested. Keep custom rules in version control with owners.
Evidence and documentation requirementsIn-house: your team writes and keeps every record. Partner: evidence pack is a named deliverable. Managed: confirm which logs and reports you receive.Ask which assessor reviews it and the format they expect. Auditors and certification bodies issue reports; the implementer prepares evidence.
Upgrade cadence for pinned libraries and modelsIn-house: your team tracks releases and retests each pin. Partner: upgrades are a retainer or scoped item. Managed: confirm schedule and who retests.Pin exact versions, such as llamafirewall 1.0.3 from PyPI, and track each model's license terms.

What goes wrong under each model and how to prevent it

Each staffing model puts risk in a different place: people, handover, contracts, data paths, licenses and upgrades. The six cards below name one failure per item, the prevention step to take, and the document to request before signing. Read them together, because the same gap often shows up under more than one model.

Key-person dependency in house

An in-house team often depends on one engineer who knows how LlamaFirewall is wired into the agent, which Python 3.10 or later environment runs it, and where the Together API key is stored. If that person leaves or moves teams, scanner tuning decisions and failure fixes leave with them. Prevention: name two engineers for each component and keep a runbook in your own repository. Before the build starts, document the role matrix showing who owns each component, who covers during leave, and who signs off on policy changes.

Handover gap after partner exit

A partner can finish the build and leave behind an undocumented runtime: a pinned Python environment, custom guard configs, and a Together API key registered under the partner's account. Your team then inherits scanners it cannot rebuild or rotate. Prevention: at go-live, move every cloud account, API key and repository into your tenancy and record an owner for each. Document to request before signing: a handover pack that lists the runtime, configuration files, accounts, key owners and the steps to rebuild the stack from scratch.

Unclear exit terms for managed services

A managed service runs the LlamaFirewall pipeline, the guard models and the logs on its side, so your exit depends on terms written before signing. Without them, you may find that guardrail policies, logs and evaluation results cannot be exported in a usable format, or that deletion of your data is left to the provider's schedule. Prevention: write export formats and deletion steps into the contract before the first production call. Document to request before signing: the exit schedule in the master agreement and the data processing terms, reviewed by counsel.

Unreviewed AlignmentCheck data flow

AlignmentCheck audits agent reasoning and requires a Together API key, so the content it inspects may reach a third-party service outside your environment. Security teams often approve self-hosted scanners and never review this outbound path. Prevention: map every call AlignmentCheck makes, classify the content it can send, and get security sign-off before enabling it in production. Document to request before signing: a data flow diagram and the provider's data handling terms, which you should confirm directly with the provider.

LlamaFirewall README

License misreading across components

LlamaFirewall is MIT licensed, but Llama Guard 4 and Prompt Guard 2 ship under the Llama 4 Community License Agreement, while Llama Guard 3 and the original Prompt Guard use the Llama 3.2 Community License. Teams that read the MIT label as covering the whole stack can miss obligations attached to the model weights. Prevention: map each component to its license file before deployment and repeat the check whenever a model changes. Document to request before signing: a license inventory listing every model and library in the stack, reviewed by your legal team.

Llama Guard 4 license

Version drift in pinned components

Pinned libraries and model files fall behind when no one owns the upgrade calendar. LlamaFirewall 1.0.3 is the latest version on PyPI at the time of writing, and each newer release can change what your team must retest. Prevention: pin exact versions in your dependency files, watch the PyPI and PurpleLlama release channels, and retest after each change. Document to request before signing: a support and upgrade commitment that names the versions covered, who applies patches, and how long older versions stay supported.

LlamaFirewall on PyPI

How an implementation partner engagement runs from scoping to handover

The sequence runs from a written scope to a system your own team can operate without the build team. Each step closes with a named output, so you can check progress against the agreed deliverables at every stage. Ongoing support is available as a separate retainer.

  1. Agree scope and deliverables in writing

    Before any work starts, the scope, deliverables and timelines are agreed in writing. Most DeployOpen engagements are fixed-scope, so this document is the reference for what gets built and tested. The written scope should name the Purple Llama components in play (such as Llama Guard 4, Prompt Guard 2, LlamaFirewall or CodeShield), the applications they protect, the identity and logging systems involved, and the license terms your legal team needs to review, including the Llama 4 Community License that covers Llama Guard 4 and Prompt Guard 2. DeployOpen does not publish a price list, so a quote follows from this written scope. Done when both parties sign it.

  2. Build and integrate inside your infrastructure

    DeployOpen builds the components inside your cloud accounts, data centers or air-gapped network, with SSO, access control, audit logging and data handling controls connected to your existing systems. Integration covers the application path: pip install llamafirewall requires Python 3.10 or later, and its scanners must sit where your chat models and agents send traffic. Before build, confirm whether AlignmentCheck is in scope, because it requires a Together API key, an external dependency your security team should approve. Hardening covers hosts, secrets and tool permissions. Done when the components run in your environment and every integration point is documented.

  3. Test the setup and retest fixes

    DeployOpen tests the guarded application and its surrounding setup, including prompt injection, tool and file permissions, data exposure and credential handling. Findings are delivered with reproduction steps and recommended fixes. After fixes are applied, the same tests run again and the retest results are recorded, so each closed finding has evidence behind it. Ask how false positives from the classifiers will be measured and who decides whether a finding is accepted. Done when the retest report shows every agreed finding closed or accepted in writing.

  4. Hand over configuration, runbooks and access

    Handover covers the final configuration, runbooks for routine operation and incident response, and transfer of administrative access to the people who will run the system. A walkthrough is held for that team so they can change rules, rotate keys and read logs without the build team on hand. Ask whether the runbooks cover Purple Llama version upgrades, since each component follows its own release history. Done when your operators hold the access and the documents, and have completed the walkthrough.

  5. Continue with support, upgrades and testing

    After handover, ongoing support, upgrades and continuous testing are available as retainers, separate from the fixed-scope build. Retainer scope, response expectations and upgrade cadence are set in the written agreement, so ask for each explicitly. Upgrades can change license terms as well as model behavior, so include a license review in any upgrade plan. Done when the retainer scope is signed, or your team has confirmed in writing that it will run the system without one.

What buyers ask before hiring help for Purple Llama

How much time and money does a Purple Llama partner engagement need?

Scope drives both, and no single figure applies to every team. Cost follows the written scope: which models you deploy (Llama Guard, Prompt Guard, LlamaFirewall or a combination), how many applications and agent tools need guarding, and whether the work includes SSO, audit logging, hardening and a test cycle or only a proof of concept. Duration follows the same scope, plus how quickly your side grants access and approves changes. One-time costs usually cover design, deployment, integration and the first test pass. Recurring costs usually cover upgrades when new versions ship, continuing testing and any support retainer. Ask the quote to split these lines, name who pays for cloud and model hosting, and state the phases, the dependencies on your team and the acceptance tests that close each phase.

What does the team need to give a Purple Llama partner?

Four inputs decide how smoothly the work runs: a named owner, infrastructure access, an accurate application architecture and representative test traffic. The owner needs authority to approve scope, access and go-live decisions. Infrastructure access covers the cloud accounts, clusters or air-gapped hosts where the models will run, along with the change approvals that access requires. The architecture description should show where prompts enter, which models and tools the application calls, where logs are written and where user data is stored. Representative test traffic means sample prompts and responses drawn from actual users, including edge cases and any languages your users write in. Without these inputs, the partner tests against assumptions and the findings need rework.

Can our team run Purple Llama alone without a partner?

Yes, if your team already holds the skills and has the capacity to keep the work current. The skills to check are container and Kubernetes operations for the serving stack, Python and API integration into your applications, identity integration for SSO and access control, logging and monitoring, and security testing of prompts, tool calls and outputs. Compare your team against the skills listed earlier in this comparison and mark any gap plainly. Also name who tracks new Purple Llama and Llama Guard releases and who reviews the license terms when a version changes. A partner can cover a single gap, such as identity or testing, while your team keeps ownership of the rest.

Does a managed Purple Llama service remove our compliance responsibility?

No. A managed service can run parts of the stack, but your organization still owns the risk decisions, the data sent to the service and the evidence an assessor will request. Confirm these points in writing before you sign: where prompts and responses are processed and stored, how long they are retained, who at the provider can access them, whether logs can be exported to your own systems, how model and version changes are announced to you, and which evidence the provider supplies for each control you depend on. Also ask what an exit involves and whether you can leave with your configuration and data intact.

Does DeployOpen issue audit reports or certifications for Purple Llama deployments?

No. DeployOpen prepares systems, controls and evidence for compliance assessments, including configuration records, access control settings, audit logging and data handling documentation that your compliance team can review. Independent auditors and certification bodies issue audit reports and certifications, so their findings are the ones your customers and regulators will rely on. Confirm with your auditor which framework applies and which evidence they expect before the build starts, so evidence is captured as the work happens and never rebuilt afterwards. Ask any partner to list the evidence it will produce, who reviews it and what your team must present itself.

What should a Purple Llama partner quote include?

Ask for a written scope first, then a quote that breaks the work into lines you can compare. Each quote should cover:

  • Scope: which models and applications are covered, which integrations are in or out, and the acceptance tests that close the work.
  • Deliverables: architecture notes, configuration, runbooks, test reports with retests and handover sessions.
  • Cost split: one-time work listed separately from recurring items such as upgrades and continuing testing.
  • Responsibilities: which costs your organization carries directly, such as cloud, model hosting and licenses, and which the partner carries.
  • Assumptions: the access, named owners and test traffic you must provide, with the date each is needed.
  • Change handling: how a new Purple Llama or Llama Guard version is assessed and what a re-scope would involve.

How DeployOpen scopes, delivers, hands over and supports Purple Llama work

DeployOpen works on Meta Purple Llama as an implementation partner, so the build runs inside your own cloud account, data center or air-gapped network. Each engagement starts with a written, fixed scope covering components, license review and deliverables, followed by build, testing, handover and optional retainer support. Teams weighing an in-house build or a managed service can use the same scope questions to compare options.

How we scope

  • Written scope listing which Purple Llama components are in and out, such as Llama Guard, Prompt Guard or LlamaFirewall.
  • License review for each model, since Llama Guard 4 and Prompt Guard 2 use the Llama 4 Community License.
  • Fixed-scope terms: deliverables and timelines agreed in writing before work begins, with the quote following from that scope.

How we build

  • Install and configure the chosen Purple Llama components in your own cloud account, data center or air-gapped network.
  • Integrate the guards into your model gateway, agent runtime or CI pipeline, and tune them to your applications.
  • Harden the deployment and back it up, then run security testing against the guarded application, including prompt injection tests.

How we hand over

  • Documentation of the deployed configuration, scanner settings and test results, written so your own team can operate it.
  • Runbooks for upgrades and backups, so each Purple Llama version change follows a documented, tested procedure.
  • Handover notes listing open items, each with a named owner on your side.

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers, separate from the fixed-scope build.
  • Ask that retainers cover upgrades, since new Llama Guard and Prompt Guard releases may change license terms.
  • Continuous testing of the guarded application as prompts, tools and models change, with findings reported against the agreed scope.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.