Close Menu
Techora News HubTechora News Hub
    Facebook X (Twitter) Instagram
    Techora News HubTechora News Hub
    • Home
    • Crypto News
      • Bitcoin
      • Ethereum
      • Altcoins
      • Blockchain
      • DeFi
    • AI News
    • Stock News
    • Learn
      • AI for Beginners
      • AI Tips
      • Make Money with AI
    • Reviews
    • Tools
      • Best AI Tools
      • Crypto Market Cap List
      • Stock Market Overview
      • Market Heatmap
    • Contact
    Techora News HubTechora News Hub
    Home»AI News»How to Build a QwenPaw Agent Workspace with Custom Skills, Model Providers, Console Access, and Streaming API Testing
    AI News

    How to Build a QwenPaw Agent Workspace with Custom Skills, Model Providers, Console Access, and Streaming API Testing

    June 14, 2026
    Facebook Twitter Pinterest Telegram LinkedIn Tumblr WhatsApp Email
    How to Build a QwenPaw Agent Workspace with Custom Skills, Model Providers, Console Access, and Streaming API Testing
    Share
    Facebook Twitter LinkedIn Pinterest Telegram Email
    kraken


    if not (WORKING_DIR / “config.json”).exists():
    run(qwenpaw_cmd(“init”, “–defaults”), check=False)
    else:
    print(“QwenPaw working directory already initialized:”, WORKING_DIR)
    provider_candidates = [
    {
    “env”: “OPENAI_API_KEY”,
    “provider_id”: “openai”,
    “name”: “OpenAI”,
    “base_url”: “https://api.openai.com/v1”,
    “model”: os.environ.get(“QWENPAW_MODEL”, “gpt-4o-mini”),
    “chat_model”: “OpenAIChatModel”,
    “prefix”: “sk-“,
    },
    {
    “env”: “OPENROUTER_API_KEY”,
    “provider_id”: “openrouter”,
    “name”: “OpenRouter”,
    “base_url”: “https://openrouter.ai/api/v1”,
    “model”: os.environ.get(“QWENPAW_MODEL”, “openai/gpt-4o-mini”),
    “chat_model”: “OpenAIChatModel”,
    “prefix”: “sk-or-“,
    },
    {
    “env”: “DASHSCOPE_API_KEY”,
    “provider_id”: “dashscope”,
    “name”: “DashScope”,
    “base_url”: “https://dashscope.aliyuncs.com/compatible-mode/v1”,
    “model”: os.environ.get(“QWENPAW_MODEL”, “qwen-plus”),
    “chat_model”: “OpenAIChatModel”,
    “prefix”: “sk-“,
    },
    {
    “env”: “DEEPSEEK_API_KEY”,
    “provider_id”: “deepseek”,
    “name”: “DeepSeek”,
    “base_url”: “https://api.deepseek.com”,
    “model”: os.environ.get(“QWENPAW_MODEL”, “deepseek-chat”),
    “chat_model”: “OpenAIChatModel”,
    “prefix”: “sk-“,
    },
    {
    “env”: “GEMINI_API_KEY”,
    “provider_id”: “gemini”,
    “name”: “Google Gemini”,
    “base_url”: “https://generativelanguage.googleapis.com”,
    “model”: os.environ.get(“QWENPAW_MODEL”, “gemini-2.5-flash”),
    “chat_model”: “GeminiChatModel”,
    “prefix”: “”,
    },
    {
    “env”: “GOOGLE_API_KEY”,
    “provider_id”: “gemini”,
    “name”: “Google Gemini”,
    “base_url”: “https://generativelanguage.googleapis.com”,
    “model”: os.environ.get(“QWENPAW_MODEL”, “gemini-2.5-flash”),
    “chat_model”: “GeminiChatModel”,
    “prefix”: “”,
    },
    ]
    selected = None
    for candidate in provider_candidates:
    api_key = colab_secret_or_env(candidate[“env”])
    if api_key:
    selected = {**candidate, “api_key”: api_key}
    break
    def read_json(path, default):
    try:
    if path.exists():
    return json.loads(path.read_text(encoding=”utf-8″))
    except Exception:
    pass
    return default
    def write_json(path, data):
    path.parent.mkdir(parents=True, exist_ok=True)
    path.write_text(json.dumps(data, indent=2, ensure_ascii=False), encoding=”utf-8″)
    config_path = WORKING_DIR / “config.json”
    config = read_json(config_path, {})
    config.setdefault(“agents”, {})
    config[“agents”].setdefault(“active_agent”, “default”)
    config[“agents”].setdefault(“agent_order”, [“default”])
    config[“agents”].setdefault(“profiles”, {})
    config[“agents”][“profiles”].setdefault(“default”, {})
    config[“agents”][“profiles”][“default”].update(
    {
    “id”: “default”,
    “name”: “Colab Research Assistant”,
    “description”: “A QwenPaw agent configured for Google Colab tutorials, local files, custom skills, and API testing.”,
    “workspace_dir”: str(WORKSPACE_DIR),
    “enabled”: True,
    }
    )
    config[“last_api”] = {“host”: “127.0.0.1”, “port”: PORT}
    config[“show_tool_details”] = True
    config[“user_timezone”] = “Asia/Kolkata”
    write_json(config_path, config)



    Source link

    notion
    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email

    Related Posts

    Automating portfolio trading with AI

    June 15, 2026

    Jinhua Zhao named head of the Department of Urban Studies and Planning | MIT News

    June 13, 2026

    Microsoft’s open-source SkillOpt automatically upgrades AI agent skills without touching model weights

    June 12, 2026

    Siri AI debuts with Google inside and Asia locked out

    June 11, 2026

    Google Releases Gemini 3.5 Live Translate, a Streaming Speech-to-Speech Audio Model Covering 70+ Languages Across Meet, Translate, and the Live API

    June 10, 2026

    The crucial human component in computing and AI | MIT News

    June 9, 2026
    notion
    Latest Posts

    Ethereum Price Outlook: ETF Outflows Clash with Rising Staking Demand

    June 14, 2026

    Metaplanet to Launch Bitcoin Yield Products by Acquiring Siiibo Securities

    June 14, 2026

    The Bitcoin 400-Day Cycle: Historical Performance Shows How Low The Bottom Goes

    June 14, 2026

    Morpho’s $175M DeFi Round Tests Onchain Credit’s Future

    June 14, 2026

    Oracle’s Stock Is Plummeting. Is This an Opportunity or a Red Flag?

    June 14, 2026
    Customgpt
    LEGAL INFORMATION
    • Privacy Policy
    • Terms Of Service
    • Social Media Disclaimer
    • DMCA Compliance
    • Anti-Spam Policy
    Top Insights

    The Canadian Companies That’ve Been Quietly Raising Their Dividend Payouts

    June 15, 2026

    Automating portfolio trading with AI

    June 15, 2026
    quillbot
    Facebook X (Twitter) Instagram Pinterest
    © 2026 TechoraNewsHub.com - All rights reserved.

    Type above and press Enter to search. Press Esc to cancel.

    bitcoin
    Bitcoin (BTC) $ 65,913.00
    ethereum
    Ethereum (ETH) $ 1,721.53
    tether
    Tether (USDT) $ 0.999384
    bnb
    BNB (BNB) $ 617.82
    usd-coin
    USDC (USDC) $ 0.999759
    xrp
    XRP (XRP) $ 1.18
    solana
    Solana (SOL) $ 71.27
    tron
    TRON (TRX) $ 0.320429
    figure-heloc
    Figure Heloc (FIGR_HELOC) $ 1.02
    staked-ether
    Lido Staked Ether (STETH) $ 2,265.05