• bitcoinBitcoin(BTC)$81,180.000.46%
  • Midas Fasanara Global EuroMidas Fasanara Global Euro(MGLOEURO)$111,813.00-0.36%
  • ethereumEthereum(ETH)$2,356.260.35%
  • tetherTether(USDT)$1.000.03%
  • binancecoinBNB(BNB)$755.771.56%
  • rippleXRP(XRP)$1.32-0.13%
  • usd-coinUSDC(USDC)$1.000.02%
  • solanaSolana(SOL)$102.321.12%
  • tronTRON(TRX)$0.329574-0.47%
  • Figure HelocFigure Heloc(FIGR_HELOC)$1.030.97%
  • zcashZcash(ZEC)$1,307.79-0.53%
  • HyperliquidHyperliquid(HYPE)$80.73-0.88%
  • dogecoinDogecoin(DOGE)$0.0796981.20%
  • moneroMonero(XMR)$598.26-1.49%
  • USDSUSDS(USDS)$1.000.01%
  • whitebitWhiteBIT Coin(WBT)$77.950.43%
  • chainlinkChainlink(LINK)$11.802.36%
  • leo-tokenLEO Token(LEO)$9.413.96%
  • cardanoCardano(ADA)$0.2055860.06%
  • nearNEAR Protocol(NEAR)$4.730.65%
  • stellarStellar(XLM)$0.1726641.58%
  • bitcoin-cashBitcoin Cash(BCH)$289.33-1.03%
  • RainRain(RAIN)$0.006979-2.81%
  • litecoinLitecoin(LTC)$59.153.68%
  • daiDai(DAI)$1.00-0.02%
  • Ethena USDeEthena USDe(USDE)$1.000.03%
  • uniswapUniswap(UNI)$7.231.95%
  • CantonCanton(CC)$0.1011942.56%
  • avalanche-2Avalanche(AVAX)$8.980.68%
  • USD1USD1(USD1)$1.000.03%
  • suiSui(SUI)$0.941.41%
  • the-open-networkGram (prev. Toncoin)(GRAM)$1.241.31%
  • hedera-hashgraphHedera(HBAR)$0.075021-1.11%
  • tether-goldTether Gold(XAUT)$4,044.55-0.26%
  • Global DollarGlobal Dollar(USDG)$1.000.01%
  • paypal-usdPayPal USD(PYUSD)$1.000.00%
  • BittensorBittensor(TAO)$257.400.90%
  • quant-networkQuant(QNT)$201.280.87%
  • shiba-inuShiba Inu(SHIB)$0.0000051.48%
  • EthenaEthena(ENA)$0.208246-0.59%
  • crypto-com-chainCronos(CRO)$0.053337-0.80%
  • Ripple USDRipple USD(RLUSD)$1.000.01%
  • BitwayBitway(BTW)$1.73-0.77%
  • MemeCoreMemeCore(M)$1.04-2.68%
  • Ondo US Dollar YieldOndo US Dollar Yield(USDY)$1.150.05%
  • Circle USYCCircle USYC(USYC)$1.140.01%
  • okbOKB(OKB)$111.271.75%
  • BlackRock USD Institutional Digital Liquidity FundBlackRock USD Institutional Digital Liquidity Fund(BUIDL)$1.000.00%
  • pepePepe(PEPE)$0.0000059.77%
  • Pump.funPump.fun(PUMP)$0.0045204.43%
TradePoint.io
  • Main
  • AI & Technology
  • Stock Charts
  • Market & News
  • Business
  • Finance Tips
  • Trade Tube
  • Blog
  • Shop
No Result
View All Result
TradePoint.io
No Result
View All Result

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

June 13, 2026
in AI & Technology
Reading Time: 2 mins read
A A
How to Build a QwenPaw Agent Workspace with Custom Skills, Model Providers, Console Access, and Streaming API Testing
ShareShareShareShareShare
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)

Credit: Source link

YOU MAY ALSO LIKE

Microsoft Posts 19% Revenue Growth as Azure Revenue Jumps 48% – Unite.AI

Apple’s PROLED XDR Display Has A Cringy Name But Incredible Specs

ShareTweetSendSharePin

Related Posts

Microsoft Posts 19% Revenue Growth as Azure Revenue Jumps 48% – Unite.AI
AI & Technology

Microsoft Posts 19% Revenue Growth as Azure Revenue Jumps 48% – Unite.AI

October 28, 2026
Apple’s PROLED XDR Display Has A Cringy Name But Incredible Specs
AI & Technology

Apple’s PROLED XDR Display Has A Cringy Name But Incredible Specs

October 28, 2026
Meta Weighs Delaying ‘Alarming’ New Business Terms As Backlash Grows
AI & Technology

Meta Weighs Delaying ‘Alarming’ New Business Terms As Backlash Grows

October 28, 2026
Google DeepMind Introduces Gemini 4 Carbon, Its Top Model for Cyber Defense and Coding
AI & Technology

Google DeepMind Introduces Gemini 4 Carbon, Its Top Model for Cyber Defense and Coding

October 28, 2026
Next Post
California labor boss’s shocking three-word tweet aimed at Elon Musk resurfaces

California labor boss's shocking three-word tweet aimed at Elon Musk resurfaces

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Search

No Result
View All Result
Brazil heads back to the future as Flavio Bolsonaro refuses to recognize Lula win – Reuters

Brazil heads back to the future as Flavio Bolsonaro refuses to recognize Lula win – Reuters

October 26, 2026
Missing dog reunited with owner

Missing dog reunited with owner

October 27, 2026
Oil rises as US orders diplomats to leave Saudi Arabia amid escalating tensions – Reuters

Oil rises as US orders diplomats to leave Saudi Arabia amid escalating tensions – Reuters

October 22, 2026

About

Learn more

Our Services

Legal

Privacy Policy

Terms of Use

Bloggers

Learn more

Article Links

Contact

Advertise

Ask us anything

©2020- TradePoint.io - All rights reserved!

Tradepoint.io, being just a publishing and technology platform, is not a registered broker-dealer or investment adviser. So we do not provide investment advice. Rather, brokerage services are provided to clients of Tradepoint.io by independent SEC-registered broker-dealers and members of FINRA/SIPC. Every form of investing carries some risk and past performance is not a guarantee of future results. “Tradepoint.io“, “Instant Investing” and “My Trading Tools” are registered trademarks of Apperbuild, LLC.

This website is operated by Apperbuild, LLC. We have no link to any brokerage firm and we do not provide investment advice. Every information and resource we provide is solely for the education of our readers. © 2020 Apperbuild, LLC. All rights reserved.

No Result
View All Result
  • Main
  • AI & Technology
  • Stock Charts
  • Market & News
  • Business
  • Finance Tips
  • Trade Tube
  • Blog
  • Shop

© 2023 - TradePoint.io - All Rights Reserved!