# Marvin

Build small Python agents for structured results, tool calls and resumable conversations.

Canonical profile: https://ki-agentenkompass.de/en/agents/marvin/
Editor: [Michael Meierhoff](https://ki-agentenkompass.de/en/about/)
Sources reviewed: 2026-11-16
Basis: provider documentation. Examples are editorial suggestions, not hands-on product tests.

## Overview

Marvin is assessed here as a self-hosted agent framework. Additional hosted provider offerings have separate terms.

- Provider: Prefect
- Product family: Marvin
- Profile type: Agent framework for your deployment
- Environment: Your server or development machine; integration into your application.
- Connections: Configured model providers, custom tools and approved data sources.
- Setup: Set up Python 3.10 or later, install Marvin and configure model credentials and tools.
- Pricing model: USD 0 for the software licence (Apache-2.0); model usage, storage and operations are additional.

## Key features

### Structured results

Extraction, classification and typed results make model output usable in code.

Source: https://askmarvin.ai/quickstart

### Custom tools

Agents choose between supplied Python tools as needed.

Source: https://askmarvin.ai/quickstart

### Reusable agents

Agent objects combine models, instructions and tools for multiple tasks.

Source: https://askmarvin.ai/quickstart

### Resume conversations

Threads store conversation history and usage in a database.

Source: https://askmarvin.ai/concepts/threads

### Choose model providers

Pydantic AI models and provider identifiers configure model access.

Source: https://askmarvin.ai/guides/configure-llms

## Example workflows

### Handle a knowledge question

- Your input: A concrete question and approved data sources.
- Possible result: A draft answer produced through configured tools.
- What to check: Review sources, permissions and output before use.

### Prepare a multi-step task

- Your input: A limited task with permitted tools and an acceptance criterion.
- Possible result: A traceable workflow with a reviewable result.
- What to check: Start with test data and explicitly approve external actions.

## Requirements and limits

### Your deployment

Requirement: Set up Python 3.10 or later, install Marvin and configure model credentials and tools.

Source: https://askmarvin.ai/quickstart

### Data and action permissions

Requirement: You configure permitted tools and data access. External actions require appropriate permissions and approvals.

Source: https://askmarvin.ai/quickstart

### Operate responsibly

Limitation: Cost limits, monitoring, backups and retries of external actions must be secured in your deployment.

Source: https://askmarvin.ai/quickstart

## A good fit if …

- you want to develop custom agents and deliberately restrict their tools
- you can handle development and operations with suitable model access
- you need structured results and reusable Python tools in your application

## Less suitable if …

- you need a personal assistant ready to use without setup
- your project requires a fully managed service

Editorial assessment based on provider documentation. Not a product test.

## Usable AI models

Open choice

Model access is based on Pydantic AI. Providers and models are selected by identifier or model instance.

- Model families named: OpenAI (GPT), Anthropic (Claude) · Other models can be connected freely
- Model choice: You choose
- Your own API key: Yes
- Router or custom endpoint: Yes
- Local models: Not stated

Documented · Sources accessed on: 2026-11-16

- [Marvin · Models](https://github.com/PrefectHQ/marvin)

## Europe & regional availability

Software access, model terms and data processing are assessed separately.

Reviewed scope: Marvin · self-hosted access
Reviewed on: 2026-11-16

### Self-hosting and model providers

With requirements

Public source code enables your own deployment. Connected model and data services determine regional limits and data flows.

Region covered: EU/EEA, United Kingdom and Switzerland

Documented reason: Reviewed sources state no blanket European feature restriction on self-hosted source code. EU data residency is a separate requirement.

Official source: https://github.com/PrefectHQ/marvin
Official source: https://askmarvin.ai/quickstart

## Accounts & permissions

Based on provider documentation. Permissions depend on the account, integration and organization policies. Review the permissions actually requested before use.

Configuration covered: Marvin · Accounts and permissions
Sources reviewed: 2026-11-16

### Account used

Documented with conditions: Model keys and service credentials are configured in the deployment. Agent roles in code do not replace separate service accounts.

Evidence: https://askmarvin.ai/quickstart

### Admin approval

Documented with conditions: The application defines approvals and permitted tools. A specific approval requirement applies only when configured in the workflow.

Evidence: https://askmarvin.ai/quickstart

### Data access & team sharing

Documented with conditions: Action scope and data access follow the tools and credentials actually configured.

Evidence: https://askmarvin.ai/quickstart

## Prices and included usage

Pricing checked: 2026-11-16

USD 0 for the software licence (Apache-2.0); model usage, storage and operations are additional.

### Self-operation

USD 0 software license

Software under the stated repository licence. Models, storage and infrastructure are paid separately.

Price source: https://github.com/PrefectHQ/marvin

Total monthly operating cost depends on models, data volume and run frequency.

Pricing details: https://github.com/PrefectHQ/marvin

## Operation & oversight

Based on public provider documentation. Assessments are editorial inferences from the stated properties. Actual time requirements and reliability have not been measured.

Deployment covered: Marvin · Execution and continuity
Sources reviewed: 2026-11-16

### Files and working state

Documented with conditions: Threads store messages and usage in ~/.marvin/marvin.db by default.

Evidence: https://askmarvin.ai/quickstart

### Sign-ins

Documented with conditions: Model and service keys are managed in your deployment.

Evidence: https://askmarvin.ai/quickstart

### Starting further runs

Documented with conditions: Further tasks are started from the application or configured workflows.

Evidence: https://askmarvin.ai/quickstart

### Human intervention

Documented with conditions: Checkpoints and action approvals must be configured for the specific workflow.

Evidence: https://askmarvin.ai/quickstart

### Detecting errors

Documented with conditions: Error handling and logs must be integrated into your operations.

Evidence: https://askmarvin.ai/quickstart

### Resuming after failures

Documented with conditions: The same thread ID and retained database resume the conversation; external actions are not automatically resumed.

Evidence: https://askmarvin.ai/quickstart

### Editorial assessment

Editorial assessment of the self-hosted access; specific limits are stated per criterion.

## Memory and conversation continuity

Scope: Marvin · main self-hosted access
Sources accessed: 2026-11-16

The assessment covers documented storage mechanisms in your deployment.

### Storage and scope

Documented: Threads store messages and usage in ~/.marvin/marvin.db by default.

- [Marvin · Memory / State](https://askmarvin.ai/concepts/threads)

### Selection and timing

Documented: Calls write history to the current or explicitly selected thread.

- [Marvin · Memory / State](https://askmarvin.ai/concepts/threads)

### Inspect, edit and delete

Partly documented: get_messages and get_usage support inspection; deletion rules must be implemented in database operations.

- [Marvin · Memory / State](https://askmarvin.ai/concepts/threads)

### Agent and channel boundaries

Partly documented: Thread IDs separate conversation histories; a shared thread deliberately shares context.

- [Marvin · Memory / State](https://askmarvin.ai/concepts/threads)

### Retrieval

Documented: Later calls load the selected thread history. Semantic memory is a separate feature.

- [Marvin · Memory / State](https://askmarvin.ai/concepts/threads)

### Session reset and compaction

Partly documented: The same thread ID and retained database resume the conversation; external actions are not automatically resumed.

- [Marvin · Memory / State](https://askmarvin.ai/concepts/threads)

## Context

Cost limits, monitoring, backups and retries of external actions must be secured in your deployment.

Official project sources reviewed. Examples and suitability are editorial assessments; this directory does not include our own product tests.

## Sources

- https://github.com/PrefectHQ/marvin

- https://askmarvin.ai/quickstart

- https://askmarvin.ai/concepts/threads

- https://askmarvin.ai/guides/configure-llms

## Provider

Official project sources establish a dedicated agent framework. On the review date the repository has 6,204 stars and 415 forks; these measure community interest, not active users.

- Operator: Prefect
- Organization: Open-source project and software provider
- Website: https://github.com/PrefectHQ/marvin
- Reviewed: 2026-11-16

- Repository: https://github.com/PrefectHQ/marvin
- GitHub-Stars: 6204 (2026-11-16)
- License: Apache-2.0

- Provider source: https://github.com/PrefectHQ/marvin

[Sources and method](https://ki-agentenkompass.de/en/sources/)
