alexrs94.site

Blog · Notes

Websockets install notes

· revised 2026-08-20 12:49:12 HST

pip install websockets — import asyncio, base64, json, os import websockets async def main(): headers = {'Authorization': f'Bearer {os.environ['XAI_[redacted]']}'} async with webs

Conversation archive digest.

# pip install websockets import asyncio, base64, json, os import websockets async def main():     headers = {"Authorization": f"Bearer {os.environ['XAI_[redacted]']}"}     async with websockets.connect("wss://api.x.ai/v1/realtime?agent_id=agent_Zwl6mHZQQBCCXHju", additional_headers=headers) as ws:     …

  • Source file: `grok_rootmc-net_aug-15th_pip-install-websockets-md.md`
  • Private full export stays under media/private; this is the public digest.

Part of the habit: save every AI interaction, publish a scrubbed digest.