{"id":5697,"library":"pykaos","title":"PyKaos","description":"PyKaos is a lightweight operating system abstraction layer designed for agents. As of late 2025, the standalone `pykaos` library has been archived, and its development and functionality have been integrated into the `kimi-cli` monorepo. The last independent release was version 0.9.0.","status":"deprecated","version":"0.9.0","language":"en","source_language":"en","source_url":"https://github.com/MoonshotAI/pykaos","tags":["agent","os abstraction","deprecated"],"install":[{"cmd":"pip install pykaos","lang":"bash","label":"Install PyKaos"}],"dependencies":[],"imports":[{"note":"While this was a common import, the standalone 'pykaos' is now deprecated. Functionality is integrated into 'kimi-cli'.","symbol":"Kaos","correct":"from pykaos import Kaos"}],"quickstart":{"code":"import os\nfrom pykaos import Kaos\n\n# NOTE: The standalone pykaos library is deprecated.\n# This example is illustrative for historical usage of pykaos v0.9.0.\n# For active development, refer to the 'kaos' package within the kimi-cli monorepo.\n\ndef main():\n    kaos = Kaos()\n    try:\n        # Example: Listing files in the current directory using Kaos's filesystem abstraction\n        print(f\"Current directory content: {kaos.fs.listdir('.')}\")\n        \n        # Example: Reading an environment variable\n        api_key = kaos.env.get('MY_API_KEY', 'default_value')\n        print(f\"My API Key (from env or default): {api_key}\")\n\n    except Exception as e:\n        print(f\"An error occurred: {e}\")\n\nif __name__ == '__main__':\n    # Set a dummy environment variable for demonstration\n    os.environ['MY_API_KEY'] = os.environ.get('MY_API_KEY', 'TEST_123')\n    main()","lang":"python","description":"This quickstart demonstrates basic usage of the deprecated `pykaos` library, specifically its filesystem and environment interaction capabilities. It is provided for historical context only. New projects should *not* use this library directly. Instead, refer to the `kaos` package within the `kimi-cli` project for current development practices and integrated functionality."},"warnings":[{"fix":"Migrate to the `kaos` package, which is part of the `kimi-cli` monorepo (https://github.com/MoonshotAI/kimi-cli/tree/main/packages/kaos).","message":"The standalone `pykaos` library has been officially archived on GitHub. Its development has ceased, and new features or bug fixes will not be released for this independent package.","severity":"breaking","affected_versions":"<=0.9.0"},{"fix":"Utilize the `kaos` package within the `kimi-cli` monorepo for agent operating system abstraction needs.","message":"Users are strongly advised against starting new projects with `pykaos`. The project is no longer actively maintained as a separate entity.","severity":"deprecated","affected_versions":"All versions"}],"env_vars":null,"last_verified":"2026-04-13T00:00:00.000Z","next_check":"2026-07-12T00:00:00.000Z"}