Skip to main content

aicharged.io에 OpenAI Agents SDK (Python) 연결

도구 215개, 단일 엔드포인트: https://aicharged.io/api/v1/mcp

OpenAI Agents SDK (Python)

Python용 OpenAI Agents SDK: Authorization 헤더가 있는 MCPServerStreamableHttp를 mcp_servers로 에이전트에 전달합니다.

  • API 키(Bearer)

에이전트 코드

추천
import asyncio, os
from agents import Agent, Runner
from agents.mcp import MCPServerStreamableHttp

async def main():
    async with MCPServerStreamableHttp(
        name="aicharged",
        params={
            "url": "https://aicharged.io/api/v1/mcp",
            "headers": {"Authorization": f"Bearer {os.environ['AICHARGED_API_KEY']}"},
            "timeout": 30,
        },
    ) as server:
        agent = Agent(name="Assistant", instructions="Use the aicharged.io tools.", mcp_servers=[server])
        result = await Runner.run(agent, "List my recent aicharged.io runs")
        print(result.final_output)

asyncio.run(main())

패키지 설치

pip install openai-agents

또는 CLI로 자동 설정하기

aicharged setup 명령어가 이 기기에서 AI 클라이언트를 찾아 브라우저를 통해 로그인하고 설정을 자동으로 작성합니다.

한 줄로 연결하기

CLI 설치 · macOS / Linux
curl -fsSL https://aicharged.io/install.sh | sh && aicharged setup
CLI 설치 · Windows
irm https://aicharged.io/install.ps1 | iex; aicharged setup
MCP 엔드포인트
https://aicharged.io/api/v1/mcp

스트리밍 가능한 HTTP. Authorization: Bearer <API_KEY> 헤더를 전송하거나, 클라이언트가 지원하는 경우 OAuth로 로그인하세요.

또는 에이전트에게 지시하세요
다음을 읽고 aicharged.io를 설정해 주세요: https://aicharged.io/agent.md

이 프롬프트로 열기: Claude (새 창에서 열림) ChatGPT (새 창에서 열림) Perplexity (새 창에서 열림)