{
  "id": "tgpt",
  "name": "tgpt",
  "homepage": "https://github.com/aandrew-me/tgpt",
  "description": "AI Chatbots in terminal for free",
  "executables": [
    "tgpt"
  ],
  "dotfiles": {
    "paths": [],
    "secret": [
      "[configHome]/tgpt/config.conf",
      "[configHome]/tgpt/proxy.txt",
      "%USERPROFILE%/.config/tgpt/config.conf",
      "%USERPROFILE%/.config/tgpt/proxy.txt",
      "[appData]/tgpt/config.conf",
      "[appData]/tgpt/proxy.txt"
    ]
  },
  "commands": {
    "format": 1,
    "label": "Ask an AI chatbot",
    "description": "Send a prompt to an AI provider from the terminal. Interactive modes, MCP and image generation sizing are left out; API keys are never put on the command line here.",
    "quality": "ai-draft",
    "parser": {
      "end_of_options": "--",
      "interleave": "permute",
      "long_equals": true,
      "short_attached": true,
      "short_bundles": false
    },
    "source": [
      {
        "id": "usage",
        "kind": "help",
        "url": "https://github.com/aandrew-me/tgpt/blob/main/md/usage.md",
        "revision": "main 2026-10",
        "evidence": " Usage: tgpt [Flags] [Prompt]\n -s, --shell        Generate and Execute shell commands.\n -c, --code         Generate Code.\n -q, --quiet        Gives response back without loading animation and extra text\n -w, --whole        Gives response back as a whole text instead of streaming it\n -img, --image      Generate images from text\n --provider         Set Provider.\n -f, --find         Find information using web search\n --model            Set Model\n --url              Set API endpoint url. You need to provide the full URL.\n --preprompt        Set preprompt\n -y                 Execute shell command without confirmation\n Available providers to use: anyapi, deepseek, gemini, groq, isou, koboldai, minimax, ollama, ollamacloud, omniroute, openai, opencode, pollinations, powerbrain.\n"
      }
    ],
    "field": [
      {
        "id": "prompt",
        "label": "Prompt",
        "type": "string",
        "position": 0,
        "multiple": true,
        "sources": [
          "usage"
        ]
      },
      {
        "id": "provider",
        "label": "Provider",
        "type": "enum",
        "option": [
          "--provider"
        ],
        "choices": [
          {
            "value": "anyapi",
            "label": "anyapi"
          },
          {
            "value": "deepseek",
            "label": "deepseek"
          },
          {
            "value": "gemini",
            "label": "gemini"
          },
          {
            "value": "groq",
            "label": "groq"
          },
          {
            "value": "isou",
            "label": "isou"
          },
          {
            "value": "koboldai",
            "label": "koboldai"
          },
          {
            "value": "minimax",
            "label": "minimax"
          },
          {
            "value": "ollama",
            "label": "ollama"
          },
          {
            "value": "ollamacloud",
            "label": "ollamacloud"
          },
          {
            "value": "omniroute",
            "label": "omniroute"
          },
          {
            "value": "openai",
            "label": "openai"
          },
          {
            "value": "opencode",
            "label": "opencode (default)"
          },
          {
            "value": "pollinations",
            "label": "pollinations"
          },
          {
            "value": "powerbrain",
            "label": "powerbrain"
          }
        ],
        "sources": [
          "usage"
        ]
      },
      {
        "id": "model",
        "label": "Model",
        "type": "string",
        "option": [
          "--model"
        ],
        "sources": [
          "usage"
        ]
      },
      {
        "id": "url",
        "label": "API endpoint URL",
        "type": "url",
        "option": [
          "--url"
        ],
        "sources": [
          "usage"
        ]
      },
      {
        "id": "preprompt",
        "label": "Preprompt",
        "type": "string",
        "option": [
          "--preprompt"
        ],
        "sources": [
          "usage"
        ]
      },
      {
        "id": "shell",
        "label": "Generate shell commands",
        "type": "boolean",
        "option": [
          "--shell",
          "-s"
        ],
        "sources": [
          "usage"
        ]
      },
      {
        "id": "yes",
        "label": "Run shell command without confirmation",
        "type": "boolean",
        "option": [
          "-y"
        ],
        "effect": "exec",
        "sources": [
          "usage"
        ]
      },
      {
        "id": "code",
        "label": "Generate code",
        "type": "boolean",
        "option": [
          "--code",
          "-c"
        ],
        "sources": [
          "usage"
        ]
      },
      {
        "id": "find",
        "label": "Web search",
        "type": "boolean",
        "option": [
          "--find",
          "-f"
        ],
        "sources": [
          "usage"
        ]
      },
      {
        "id": "quiet",
        "label": "Quiet output",
        "type": "boolean",
        "option": [
          "--quiet",
          "-q"
        ],
        "sources": [
          "usage"
        ]
      },
      {
        "id": "whole",
        "label": "Whole response, no streaming",
        "type": "boolean",
        "option": [
          "--whole",
          "-w"
        ],
        "sources": [
          "usage"
        ]
      },
      {
        "id": "image",
        "label": "Generate an image",
        "type": "boolean",
        "option": [
          "--image",
          "-img"
        ],
        "sources": [
          "usage"
        ]
      }
    ],
    "task": [
      {
        "id": "ask",
        "label": "Ask a question",
        "fields": [
          "prompt",
          "provider",
          "model",
          "quiet"
        ],
        "required": [
          "prompt"
        ]
      },
      {
        "id": "shell",
        "label": "Generate a shell command",
        "fields": [
          "prompt",
          "shell"
        ],
        "required": [
          "prompt",
          "shell"
        ],
        "set": {
          "shell": [
            true
          ]
        }
      }
    ],
    "group": [
      {
        "id": "basic",
        "label": "Basic",
        "fields": [
          "prompt",
          "provider",
          "model",
          "shell",
          "code",
          "find"
        ]
      },
      {
        "id": "advanced",
        "label": "Advanced",
        "fields": [
          "url",
          "preprompt",
          "yes",
          "quiet",
          "whole",
          "image"
        ]
      }
    ]
  }
}
