Provider integration

How a subscription provider delivers configuration, metadata, routing and policy to ReClash. Start with the Quick start, then open the page for your area.

On this page

Model

A subscription is one HTTP GET. The body is plain mihomo; headers carry per-user data and one pointer to a manifest that carries everything else.

ChannelCarriesReference
Bodymihomo (Clash) YAML, only keys mihomo understands. Share links, Xray, sing-box, WireGuard and Amnezia are converted on import and may lose data. AGE-encrypted bodies are decrypted first. The native GLOBAL group and tun.exclude-package carry the safety policy.—
Standard headersSubscription-Userinfo, Content-Disposition, profile-title, profile-update-interval, and the aliases support-url, profile-web-page-url, announce, hide-url.Response headers
reclash-config headerThe pointer to the manifest, and the only reclash-* header. Any other reclash-* header is ignored with a warning.Manifest pointer
ManifestOne static YAML file shared by all users: provider panel, reminders, settings, policy, Android apps, transport, support, appearance, cards, power labels, routing.Provider manifest
Device headersx-hwid, x-hwid-max-devices-reached and related headers.Request headers
Preview endpointJSON shown before a browser import is confirmed. It runs before any subscription exists, so it cannot use the manifest.Preview API

Fetch cycle

  1. Sends the request with the profile's client preset and the device ID, if enabled (Request headers).

  2. Follows up to 5 redirects and decodes the body (Redirects and transport).

  3. Decodes headers against the registry. Invalid values are dropped with a warning.

  4. Merges the result into stored metadata (Metadata lifetime).

  5. Fetches the manifest named by reclash-config, if any (Delivery).

  6. Applies configuration, manifest and policy.

The update is rejected, and the saved profile stays unchanged, when the body is empty, its format is unknown, or it has no nodes, groups or remote providers.

Trust levels

LevelEffectExamples
displayShown to the user. No behavior change.provider.name, provider.announce, provider.hide-url
hintChanges behavior within fixed bounds.settings, apps.exclude, reminders
consentNeeds the user's agreement before it acts.support.keys, support.upload-url

Most hints yield to user changes (Ownership). Only policy sets limits the user cannot lift.

Metadata lifetime

Usage and the manifest age differently.

DataLifetime
Standard headersEach successful update merges them over the stored ones. A response field replaces the stored value. A missing usage field (Subscription-Userinfo) keeps its last value and is marked stale; expiry and traffic reminders are suppressed while stale. Any other missing header is withdrawn, and a setting that followed it returns to the user's value.
ManifestReplaced as a whole after full validation. A failed or invalid fetch keeps the last valid copy. A response without reclash-config deletes the stored copy. A section missing from a new valid copy is withdrawn.

A failed update changes nothing. The Subscription inspector lists stale fields and warnings.

Standard version

The registry is standard version 1. The standard registry is generated from code: headers, manifest fields, types, trust levels and size limits. The machine-readable copy is provider_standard.g.json.

Minimal response

http
HTTP/1.1 200 OK
Content-Type: text/yaml; charset=utf-8
Content-Disposition: attachment; filename*=UTF-8''Example%20VPN
Subscription-Userinfo: upload=0; download=2147483648; total=107374182400; expire=1798761600
profile-update-interval: 12
reclash-config: https://example.net/reclash.yaml

proxies:
  - name: Germany
    type: socks5
    server: de.example.net
    port: 1080
proxy-groups:
  - name: Proxy
    type: select
    proxies: [Germany]
rules:
  - MATCH,Proxy
yaml
version: 1
provider:
  name: Example VPN
  support-url: https://t.me/example_support

Node fields

Two optional keys on a node in proxies: or in a proxy provider's payload:

text
proxies:
  - name: Frankfurt 1
    type: vless
    desc: Streaming, 1 Gbit/s
    favorite: true
  • desc replaces the protocol on the node card and is searchable. description, serverDescription and server-description are accepted as aliases.

  • favorite: true stars the node. The user's own tap on the star flips the provider's mark, so a starred node can be unstarred and stays that way.

Compatibility

Pages

PageContent
Response headersStandard headers, value formats, aliases, the manifest pointer.
Provider manifestQuick start, full example, editor validation; provider panel, reminders, settings, policy, apps, transport, support, appearance, cards, power labels, routing.
Request headersClient headers, presets, redirects, statuses, fallback hosts, device ID.
Safety policyThe policy section: GLOBAL allowlist, no Global mode, required Android exclusions.
Preview APIPresentation before a browser import.
Support reports and fix linksOne-button reports, upload endpoint, signed fix links.
Delivery and debuggingServing, Remnawave, verification, failures, checklist.
Standard registryGenerated header and manifest field tables.

Searches every section: providers and RCX