diff --git a/api/README.md b/api/README.md index cdcd4d6b..69165255 100644 --- a/api/README.md +++ b/api/README.md @@ -21,6 +21,24 @@ pip install -r requirements.txt uvicorn main:app --host 127.0.0.1 --port 8765 --reload ``` +## Calling the API from other apps + +Scripts, CLIs and other programs (curl, `modly-cli`, the MCP server, OrcaSlicer…) can call the API +with no token or setup. + +**Web pages** are refused (403), so a site open in your browser cannot drive Modly. To let a web app +in, list its origin in `MODLY_ORIGINS` before starting Modly (comma-separated, `*` wildcards): + +```bash +MODLY_ORIGINS="http://localhost:3000,chrome-extension://*" # or "*" for every page +``` + +`` / `