polydev

v1.12.0
io.github.polydev-ai/polydev Checked 4 days ago Published 29 days ago

Every AI model, inside the app you already use: ask GPT, Claude, Gemini or Grok, and see what paid.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

get_auth_status Polydev status

Show whether this machine is signed in to Polydev, which sources on this machine are ready (Claude Code, Codex, ChatGPT plan) and the configured models. When this machine is not signed in, it opens Polydev sign-in in the browser.

ParameterTypeDescription
user_tokenstringPolydev token (starts with pd_). Optional: checks this token if given, otherwise the saved one.

login Sign in to Polydev

Sign in to Polydev in your browser and save the token on this machine, so you do not copy it by hand. In sandboxes without a browser, pass user_token instead.

ParameterTypeDescription
open_browserbooleanWhether to automatically open the browser (default: true)
timeout_secondsintegerHow long to wait for authentication (default: 300 = 5 minutes)
user_tokenstringPolydev token (pd_...). Use this where browser login is unavailable (sandboxes, containers). Get one at https://www.polydev.ai/dashboard/mcp-tokens

ask_model Ask models

Send a prompt to one or more AI models and return each answer, labelled with what paid for it. With model or models, those models are asked. Without them, your default set is asked: sources on this machine first (your ChatGPT plan for OpenAI models when connected, then Claude Code and Codex under your own login, never the agent that called it), then models through Polydev with your own API keys, OpenRouter or Polydev free requests.

ParameterTypeDescription
prompt *stringThe prompt to send. Include the relevant code, errors and constraints.
modelstringOptional: one model ID to ask, for example a model shown by list_models.
modelsarrayOptional: several model IDs to ask. Without model or models, your default set is asked.
user_tokenstringPolydev token (starts with pd_). Optional when POLYDEV_USER_TOKEN is set or you have run the login tool.

get_perspectives Ask models (old name)

Old name of ask_model. Same inputs and the same behaviour.

ParameterTypeDescription
prompt *stringThe prompt to send. Include the relevant code, errors and constraints.
modelstringOptional: one model ID to ask, for example a model shown by list_models.
modelsarrayOptional: several model IDs to ask. Without model or models, your default set is asked.
user_tokenstringPolydev token (starts with pd_). Optional when POLYDEV_USER_TOKEN is set or you have run the login tool.

list_models List models

List the models this user can reach right now and what pays for each: the ChatGPT plan, Claude Code and Codex on this machine, and models through Polydev.

chatgpt_plan_status ChatGPT plan status

Show whether your ChatGPT plan is connected on this machine for OpenAI models, and how to connect or disconnect it.

connect_chatgpt_plan Continue with ChatGPT

Continue with ChatGPT: start ChatGPT sign-in so that OpenAI models asked through ask_model use your ChatGPT plan. Returns the sign-in link right away (it also tries to open the browser); call chatgpt_plan_status afterwards for the result. The sign-in and its tokens stay on this machine.

ParameterTypeDescription
timeout_secondsintegerHow long the sign-in stays open (default 300)

rank_perspectives Rank answers

Rank the answers you got from ask_model, best first, when the user asks for it or agrees. Rankings feed the public leaderboard at https://www.polydev.ai/leaderboard. Pass your own model ID as base_model so the ranking records which model judged.

ParameterTypeDescription
ranked_models *arrayModel IDs ranked best to worst, exactly as shown in the ask_model output
base_modelstringYour own model ID (the model making this ranking)
feedback_textstringOptional: why you ranked them this way
model_scoresobjectOptional: a score from 1 to 10 per model ID

search_x Search X

Search X (Twitter) for recent posts and discussions with xAI's Grok. Needs your own xAI API key, added at https://www.polydev.ai/dashboard/models; it is not part of the free allowance. Returns a summary plus links to the posts.

ParameterTypeDescription
query *stringWhat to search for on X. Can be keywords, questions, or topics (e.g. 'MCP servers', 'what are people saying about Claude Code', '@elonmusk AI')
modelstringOptional xAI model ID. Leave empty for the default.
user_tokenstringPolydev token (starts with pd_). Optional when POLYDEV_USER_TOKEN is set or you have run the login tool.

generate_image Generate image

Generate an image with OpenAI or Google Gemini. Uses your own API key if you added one at https://www.polydev.ai/dashboard/models; otherwise one image takes one request from your free allowance (provider default model, standard settings). Saves a PNG under ~/.polydev/images.

ParameterTypeDescription
prompt *stringDescription of the image to generate (e.g. 'a futuristic dashboard with neon lights', 'logo for a developer tools company')
providerstringWhich provider to use (default: gemini)
qualitystringImage quality (OpenAI with your own key only). Default: auto
sizestringImage size (OpenAI with your own key only). Default: 1024x1024
user_tokenstringPolydev token (starts with pd_). Optional when POLYDEV_USER_TOKEN is set or you have run the login tool.