# TypeSwitch

> Type-safe CLI tools to convert Prisma to Drizzle and OpenAI to Claude.

Type-safe CLI tools to convert Prisma to Drizzle and OpenAI to Claude. Zero dependencies, offline-first.

## Facts
- Website: https://www.typeswitch.in
- Pricing: paid
- Categories: AI & Machine Learning, Developer Tools
- LotsDirectory page: https://lots.directory/products/typeswitch
- Listing state: Unclaimed. We listed this product from its public website, and its owner has not claimed it yet.

## Detailed info

## What is TypeSwitch?

TypeSwitch is a collection of local TypeScript command-line utilities that convert Prisma schemas to Drizzle ORM and translate OpenAI SDK calls to Anthropic Claude.

## What TypeSwitch does

TypeSwitch provides two CLI tools: orm-migrate converts Prisma schemas into Drizzle pgTable definitions and updates relational queries across Postgres, MySQL, and SQLite dialects. The model-migrate tool updates OpenAI completions and embeddings calls to Anthropic Claude messages and SDK packages. The tools run locally, generate automatic backups, and flag complex edge cases with manual migration comments.

## Who TypeSwitch is for

TypeScript developers, software engineers, and development teams migrating database layers to Drizzle or switching AI providers from OpenAI to Anthropic Claude.

## How TypeSwitch works

Developers run the CLI against a project directory using their own LLM API keys. The tool scans files, copies original code to a local backup directory, rewrites schemas and query syntax via AST analysis and contextual prompts, and updates dependency packages in package.json.

## Key features

- orm-migrate tool that converts Prisma schemas and queries into Drizzle ORM relational syntax
- model-migrate tool that updates OpenAI SDK calls to Anthropic Claude messages
- Local machine execution that processes files on-device without third-party servers
- Automated file backups saved to a local folder with rollback support via a rollback flag
- Edge-case detection flagging raw SQL blocks and complex transactions for manual review
- Automatic detection of database dialects including Postgres, MySQL, and SQLite
- Full TypeScript source code provided with editable prompt templates

## Pricing

As listed on typeswitch.in, checked 14 October 2026. Prices can change; see the site for current terms.

- Drizzle migrator (orm-migrate): Solo developer $39 one-time, Startup team $119, Agency $249.
- LLM SDK migrator (model-migrate): Solo developer $29 one-time, Startup team $79, Agency $149.
- Full suite bundle: Solo bundle $49 one-time, Startup bundle $119, Agency bundle $299.

## Facts from typeswitch.in, checked 14 October 2026

- Executes 100% locally on the developer machine
- Creates automatic file backups in a local directory before applying changes
- Full suite bundle is priced at $49 one-time for a solo developer license
- Individual orm-migrate tool is priced at $39 one-time for solo use
- Individual model-migrate tool is priced at $29 one-time for solo use

Written from TypeSwitch's own website ([Homepage](https://www.typeswitch.in/)). The maker can claim this listing to edit it.

## FAQ

### What is TypeSwitch?
TypeSwitch is a suite of TypeScript command-line tools that automate converting Prisma codebases to Drizzle ORM and OpenAI SDK calls to Anthropic Claude.

### Does TypeSwitch transmit code to external servers?
No. The CLI tools execute locally on the user machine, connecting directly to OpenAI or Anthropic using developer API keys.

### How does the tool protect existing code?
Target files are automatically copied to a local backup folder before modifications occur, and changes can be reversed using the rollback command.

### Can the conversion prompt templates be customized?
Yes. Purchasers receive full TypeScript source code and can modify prompt templates directly in files like sdk-transpiler.ts and prisma-to-drizzle.ts.

### How are complex query edge cases handled?
Patterns such as raw SQL queries, Prisma middleware, and nested transactions are flagged with comments indicating that manual migration is required.

---
Source: https://lots.directory/products/typeswitch · Machine-readable context by LotsDirectory.