← Plugins

Model Sync

Zhenwei Zheng6installs

Replace Paseo model catalogs from Claude Code, Codex and Antigravity settings, with previews and optional auto-sync.

$ paseo plugin add flashzzw/model-sync
Model Sync screenshot 1Model Sync screenshot 2

Model Sync synchronizes local Claude Code, Codex, and Antigravity/Magpie model configuration into the corresponding Paseo provider catalogs on the daemon host. Each Linux, WSL, or Windows daemon can have its own installation and settings.

Open Settings → Plugins → Model Sync → Sync Settings to inspect live status, preview the model list each provider will have in Paseo after a sync, apply a sync, or enable background auto-sync. The settings screen follows Paseo's en / zh-CN language and theme.

How a sync works

  • Synchronization is strictly one way, from local tool configuration to Paseo. Source files are read only and never modified.
  • Each provider writes its own providers.<provider-id>.models, including custom IDs that extend a supported provider.
  • An applied sync replaces the complete provider catalog in source order. The plugin patches models to the source list and additionalModels to an empty array in one operation.
  • Entries missing from the source are removed. Added and changed entries are written. Order-only changes are applied.
  • A legacy additionalModels overlay is cleared even when the models array already matches.
  • The plugin reads the patch response back and reports success only when models matches in content and order and the overlay is empty.
  • Paseo starts in Preview only (dryRun: true) with Auto sync off and all three providers enabled. Preview always stays read only. Toggling auto-sync never changes the sync mode.
  • Disabling a provider leaves its current Paseo catalog untouched.

Empty catalogs

A manual sync with an empty local source writes models: [] and additionalModels: []. Paseo then uses its provider discovery result as the effective catalog, so the picker may still contain provider-discovered models, with no additional overlay. Background auto-sync pauses when a source is empty and does not perform the deletion automatically.

Sources

Model Sync uses the provider definitions and discovery on the selected daemon. Claude Code uses CLAUDE_CONFIG_DIR when set by the provider or daemon and ~/.claude by default. Codex uses CODEX_HOME or ~/.codex. Antigravity reads ~/.gemini/antigravity-cli/magpie-settings.json. These paths are relative to the daemon account's home. The provider inspector shows each resolved source. A per-provider source file override can point to a JSON settings or catalog file, or to a Codex configuration TOML.

Claude Code

Normal mode reads modelPicker.options, then top-level model, then the supported ANTHROPIC_* model fields. IDs are trimmed, blank IDs are skipped, and the first duplicate wins. Picker descriptions and non-blank labels are preserved. Missing or blank labels use the model ID. The top-level model supplies the default flag, and capability rules can add thinking levels.

When modelPicker.replaceBuiltInOptions is true, the catalog uses the picker options and the configured default. A routed default keeps its configured ID, including any [1m] suffix. If that ID is absent from the picker, the first matching tier supplies its position, label, and description. Entries with identical routed IDs share one row, keeping the configured default or the first entry in picker order. Context and effort suffixes distinguish routes.

Picker entries named opus, sonnet, haiku, or fable are tier selectors that Magpie routes through ANTHROPIC_DEFAULT_<TIER>_MODEL. The plugin keeps their picker label and appends → <routed model> to the description, so several tiers that share one label remain distinguishable in the Paseo picker and in the preview.

Codex

Reads the normal config.toml, including model, model_reasoning_effort, and model_catalog_json. A configured catalog takes precedence over models_cache.json, supports paths relative to the config file and ~/ paths, and fails closed when missing or invalid. With no configured catalog, models_cache.json is used. A launch with an explicit Codex --profile needs a source override for the intended file.

Antigravity/Magpie

Reads magpie/<modelName> base rows and magpie/<modelName>:<level> preset rows from customModelsConfig.customModels. The bare modelName becomes the Paseo ID. Each Magpie model requires a base row, and configured presets become thinking options alongside default.

The Antigravity ACP launcher must declare and accept the same bare model IDs that the plugin publishes to Paseo. The plugin does not inspect or validate the launcher. Launchers using AGY_LLM_GATEWAY_MODELS should derive the list from the configured base rows at each launch, with the selected model first, and expose the configured thinking presets through ACP.

Settings migration

Settings version 3 preserves the legacy provider toggles, dryRun, and autoSync and supports independent preferences for each provider ID.

Safety

  • Source reads stay on the daemon host. Tool credential files are never opened, and Claude credential-like environment values are ignored.
  • RPC outputs and UI errors contain paths and safe parser messages without raw file contents or parser excerpts.
  • The plugin sends nothing to external services.
  • Background sync uses the local daemon's paseo.pid and local-credential for the same Paseo home, verifies daemon identity, and uses local TCP, Unix sockets, or Windows named pipes.
  • Read and parse failures preserve the current Paseo catalog and retry after 1 second, 3 seconds, and 10 seconds.

Limits

  • Requires Paseo >= 0.17.3 on both daemon and client.
  • Background auto-sync requires the daemon's local listener and credential.
  • Changes in Paseo are not synchronized back to Claude Code, Codex, or Antigravity.
  • External catalog tools must update the corresponding local source before Model Sync runs.

Related plugins

Browse all plugins →