Connect your coding agent to OmniaKey with a local MCP server.
01
Install your tool
Choose your client configuration below. The server runs locally over stdio; restart the client after configuring its environment.
[mcp_servers.omniakey]
command = "npx"
args = ["--yes", "github:omniakey-com/omniakey-devtools#v0.1.0", "mcp"]
env_vars = ["OMNIAKEY_API_KEY"]claude mcp add --transport stdio omniakey -- npx --yes github:omniakey-com/omniakey-devtools#v0.1.0 mcp{
"mcpServers": {
"omniakey": {
"command": "npx",
"args": [
"--yes",
"github:omniakey-com/omniakey-devtools#v0.1.0",
"mcp"
]
}
}
}02
Connect your API key
Paste your key at the hidden terminal prompt and press Enter. Start your agent from this environment; never put the key in a prompt or repository.
Get an API keyread -s OMNIAKEY_API_KEY
export OMNIAKEY_API_KEY$env:OMNIAKEY_API_KEY = [System.Net.NetworkCredential]::new('', (Read-Host 'OmniaKey API key' -AsSecureString)).Password03
Verify without generating
Reload the MCP connection, then ask your agent to run this read-only check. A missing key means the client has not inherited your environment.
Confirm that OmniaKey MCP or CLI is ready. List accessible models and read the common media request schema. Do not submit a generation task.Find your model
Query models available to your API key, then check their documented capabilities and current prices.
Make one request
Use the same OmniaKey API for text and asynchronous image, video or audio tasks.
Pick up where you left off
Keep the task id and continue checking it. A local timeout never starts a second generation.
One task, from input to output
With the CLI installed, save the example as image.json and review the model and price before this paid request. Replace TASK_ID with the returned id.
omniakey submit --file image.json --idempotency-key YOUR_UNIQUE_TASK_KEY
omniakey task wait TASK_ID --timeout 300
omniakey task get TASK_ID04
Tools the server exposes
The server registers seven tools. Discovery, schema, task reads and cancellation do not generate content; chat and task submission can incur charges.
| Tool | What it does | Needs API key |
|---|---|---|
omniakey_models | List models available to your API key, with an optional search term and result limit. | Yes |
omniakey_schema | Return the common chat or media request envelope without a network request. | No |
omniakey_chat | Run one non-streaming chat completion. Use it only when the user asked for generation. | Yes |
omniakey_submit_task | Submit a paid image, video or audio task with a stable idempotency key. | Yes |
omniakey_get_task | Read a task by id, including fresh signed asset URLs when it has succeeded. | Yes |
omniakey_wait_task | Wait up to 45 seconds for a task; a local timeout does not cancel or resubmit it. | Yes |
omniakey_cancel_task | Request cancellation of an existing task. Cancellation can remain processing, so query the status to confirm. | Yes |
05
Other clients
VS Code uses a servers block and a password input for the key. On Windows, launch npx through cmd so the stdio server starts correctly.
{
"inputs": [
{
"type": "promptString",
"id": "omniakey-api-key",
"description": "OmniaKey API key",
"password": true
}
],
"servers": {
"omniakey": {
"type": "stdio",
"command": "npx",
"args": [
"--yes",
"github:omniakey-com/omniakey-devtools#v0.1.0",
"mcp"
],
"env": {
"OMNIAKEY_API_KEY": "${input:omniakey-api-key}"
}
}
}
}{
"mcpServers": {
"omniakey": {
"command": "cmd",
"args": [
"/c",
"npx",
"--yes",
"github:omniakey-com/omniakey-devtools#v0.1.0",
"mcp"
]
}
}
}06
Troubleshooting
These failures come from the package's own documentation. Check the client's environment before changing the configuration.
The client cannot find the API key
The MCP client process must inherit OMNIAKEY_API_KEY. A GUI client opened from the Dock or Start menu may not see variables exported in a terminal; set the key in the client's own environment block or launch it from a shell.
The API returns 401
The key is missing, expired or not allowed to use the selected model. Create a new key in the dashboard and restart the client so it picks up the change.
The API returns 403 or a non-JSON response
Check that OMNIAKEY_BASE_URL points to the API, not to a website or proxy, and that edge access controls allow the request. The client expects JSON from every API call.
A submission timed out
Keep the task id and idempotency key. Query the known id instead of resubmitting. A local timeout does not cancel the remote task.
07
About this tool
Pinned release v0.1.0
OmniaKey developer tools are open source and published as a tagged GitHub package. This page documents the command surface and behavior of that release.
- License
- MIT
- Architecture
- CLI or MCP client → shared client → api.omniakey.com/v1
- Tests
- The repository's integration tests run the CLI against a local HTTP server and the MCP server through a real stdio client. They do not run paid generations.
- Key handling
- The website never receives your API key. The CLI and MCP server read it from your environment and send it only to the API endpoint.
Common questions
Does this change model pricing?
No. The tools use your existing API key and the gateway's billing rules. Model discovery and local schema checks do not submit generation; chat and media generation can incur charges.
What happens when waiting times out?
The remote task is not canceled or resubmitted. Keep its id and continue with task get or task wait. Successful asset URLs expire; query the same task for fresh links.
Is there a hosted MCP URL?
No. The MCP server runs locally over stdio, started by your client with npx. OmniaKey does not provide a remote MCP endpoint.
Can the agent download generated files?
No. Task tools return metadata and signed asset URLs. Download files with your own tooling while the URLs are valid.
Does the MCP server execute tool calls returned by a model?
No. It exposes OmniaKey operations to the client; the client and the user decide which calls to make. Generation requires an explicit user request.