AskSage AI model provider - access GPT, Claude, Mistral, and other models through the AskSage platform.
A Dify plugin that integrates AskSage as a model provider, giving you access to 47+ AI models (GPT, Claude, Gemini, Llama, Groq, and more) through AskSage's FedRAMP-authorized API.
This plugin uses the AskSage commercial tenant at .
Contact [email protected] for enterprise pricing and volume discounts.
For MFA setup, we recommend Microsoft Authenticator or Google Authenticator. Configure it in the same Account settings page.
Important: The SDK version must match your Plugin Daemon version. If your daemon is , install . A version mismatch (e.g., SDK 0.7.x with daemon 0.5.x) will cause silent connection failures.
Dify 1.13.3 ships with by default, which has a bug that breaks installation. You must upgrade the daemon to 0.5.5+ before installing any local plugin package.
In your (e.g. ), find the service and update the image:
Then restart the daemon:
Clone this repo:
Create a virtual environment:
Install dependencies:
Copy to and fill in your debug key:
To find your debug key: Dify UI > Plugins > click the bug icon > copy Debug Key.
Run the plugin:
After installing the plugin, configure it in Dify:
When AskSage adds new models to your tenant:
This calls , generates a YAML file for each model, and updates . Image-generation models are automatically filtered out. Restart the plugin or reinstall the to pick up the changes.
When the plugin code is updated (new features, model changes, bug fixes), the update process depends on how you installed the plugin.
If you installed via a upload, you must repackage and reinstall:
Pull the latest code:
Bump the version in — the daemon rejects reinstalls at the same version:
Repackage — run from the parent directory, not from inside the plugin folder:
This writes to . If you get "Access is denied", you are likely in a directory you don't have write access to (e.g. ).
Uninstall the old version in the Dify console: Plugins → find AskSage → delete/uninstall.
Upload the new : Plugins → Install Plugin → upload the new file.
Re-enter credentials — API key and base URL do not carry over between installs. Go to the AskSage provider settings and re-enter them.
If you are running in debug mode (local Python process), updates are simpler:
Pull the latest code:
Restart the plugin — stop the running process (Ctrl+C) and relaunch:
Dify picks up updated model YAMLs and code on reconnect. No version bump or repackaging required.
Tip: Use debug mode during active development. Switch to for production or team distribution.
Dify 1.13.3's default pins , which contains a bug in the handler. The Go struct uses a tag instead of a tag, so Gin cannot bind the query parameter. The result is a 400 error on immediately after a successful upload:
Fix: Upgrade to daemon 0.5.5+ (see installation instructions above).
References:
Apache 2.0