Skip to content

Deploy ReMe on ModelScope or Hugging Face ​

Duplicate the public ReMe template into your account and select Private. ModelScope runs Docker on free CPU and installs dependencies from Huawei Cloud when building the image. Hugging Face uses Gradio with ZeroGPU. ReMe calls an external model API. The public template shows a read-only preview of Remy Chat with the copy instructions. A private copy without a model key shows the setup step over the same preview. Hugging Face template · ModelScope template

Set LLM_API_KEY in the copy's Secrets and restart it. DashScope Responses is the default provider. Use LLM_BASE_URL and REME_MODEL_NAME to select another compatible provider. Sign in to the platform and open the copy to use Studio.

To enable speech recognition and text-to-speech, add DASHSCOPE_API_KEY to Secrets and set the public variable REME_SPEECH_ENABLED to true. Restart the copy to apply both settings. Switching built-in agent presets keeps this speech setting and the hosted defaults for screen and dialogue collection. Explicit job overrides still take precedence.

Scripts and native clients use a platform token with access to the copy. On Hugging Face, use the app's https://<subdomain>.hf.space address. On ModelScope, use the API endpoint supplied by the platform. If the owner sets the optional REME_API_TOKEN, also send it in X-ReMe-API-Token.

sh
curl -fsS "$REME_URL/health_check" -H "Authorization: Bearer $PLATFORM_TOKEN" \
  -H 'Content-Type: application/json' -d '{}'

For a new Hugging Face copy, create a private Storage Bucket and mount it read-write at /data before first use. Replace OWNER and SPACE with your account and Space name. If the copy already has mounts, list them with hf spaces volumes ls OWNER/SPACE and include each one you want to keep as another -v argument. The command replaces the full mount list. Hugging Face CLI reference

sh
hf buckets create OWNER/reme-data --private
hf spaces volumes set OWNER/SPACE -v hf://buckets/OWNER/reme-data:/data

ReMe saves the workspace under /data/reme. Without a writable volume, it uses temporary storage under ~/.local/share/reme.

ModelScope provides persistent storage at /mnt/workspace/reme-data. Back up this directory before renaming or transferring the Studio. If ModelScope cannot identify a Docker copy automatically, set the Studio variable STUDIO_ID to that copy’s exact owner/name and restart. Background jobs pause during sleep. Model and storage providers may charge separately.

ModelScope checkpoints new Codex sessions in metadata/codex-snapshots/. A Studio restart must keep the same checkpoint directory while the container's Codex home is bound to it. Before upgrading an older copy, back up its workspace .codex/ directory. Earlier transcripts remain there and are not imported into the checkpoint store.

To upgrade a private copy, run Publish ReMe to Hugging Face or Publish ReMe to ModelScope in your GitHub fork. Supply the release tag and the private copy ID. Configure the Actions secret HF_TOKEN or MODELSCOPE_API_KEY for that platform. Updates preserve the URL, Secrets and persistent workspace and report conflicts with customized template files.

The two workflows independently build and verify reme-huggingface.zip and reme-modelscope.zip. Each archive contains its own launcher and configuration plus the ReMe and Studio wheels for the release.

Released under the Apache-2.0 License.